Skip to content

Commit

Permalink
Sort out version weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
durch committed Jan 18, 2017
1 parent 7a4d644 commit c1003fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/lib.rs"

[dependencies]
serde = "0.8"
serde_derive = "0.8"
serde_derive = "0.8.20"
serde_json = "0.8"
rustc-serialize = "0.3"
openssl = "^0.9"
Expand Down
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#![feature(proc_macro)]
#![allow(dead_code)]

extern crate rustc_serialize;
extern crate serde;
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate openssl;
extern crate time;
#[macro_use]
Expand All @@ -19,7 +18,7 @@ use openssl::sign::Signer;
use openssl::pkey::{PKey};
use openssl::hash::MessageDigest;

use serde::Serialize;
use serde::ser::Serialize;

use std::io::prelude::*;
use std::fs::File;
Expand Down Expand Up @@ -98,7 +97,7 @@ pub struct Jwt<T> {
algo: Algorithm
}

impl<T: Serialize> fmt::Display for Jwt<T> {
impl<T: serde::ser::Serialize> fmt::Display for Jwt<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Jwt: \n header: {} \n body: {}, \n algorithm: {}",
serde_json::to_string_pretty(&self.header().unwrap()).unwrap(),
Expand Down

0 comments on commit c1003fb

Please sign in to comment.