Skip to content

Commit

Permalink
Remove useless import + improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Prouillet committed Nov 2, 2015
1 parent e11579c commit 31d9932
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ rustc-serialize = "0.3"
## How to use
There is a complete example in examples/claims.rs but here's a quick one.

In terms of imports:
```rust
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;

use jwt::{encode, decode, Algorithm};
```

### Encoding
```rust
// encode<T: Part>(claims: T, secret: String, algorithm: Algorithm) -> Result<String, Error>
Expand Down
1 change: 0 additions & 1 deletion benches/jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ extern crate test;
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;

use rustc_serialize::{Encodable};
use jwt::{encode, decode, Algorithm};

#[derive(Debug, PartialEq, Clone, RustcEncodable, RustcDecodable)]
Expand Down
1 change: 0 additions & 1 deletion examples/claims.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;

use rustc_serialize::{Encodable};
use jwt::{
Algorithm,
encode,
Expand Down

0 comments on commit 31d9932

Please sign in to comment.