Skip to content

Commit

Permalink
Upgrade to ironoxide 0.23.1 for rustc error (#24)
Browse files Browse the repository at this point in the history
* Upgrade to ironoxide 0.23.1 for rustc error

* cargo fmt
  • Loading branch information
BobWall23 authored Sep 3, 2020
1 parent a7d5583 commit a8a9b52
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ edition = "2018"

[dependencies]
ironoxide = { version = "~0.23", features = ["tls-rustls"], default-features = false }
jsonwebtoken = "~7.1"
jsonwebtoken = "~7.2"
serde = { version = "~1.0", features = ["derive"] }
serde_json = "~1.0"
structopt = "~0.3"
tokio = { version = "~0.2.11", features = ["macros"] }
futures = "~0.3"

[profile.dev.package."*"]
opt-level = 3
opt-level = 3
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,9 @@ struct Password(String);
#[derive(Deserialize)]
struct SegmentId(String);
#[derive(Deserialize)]
struct ProjectId(usize);
struct ProjectId(u32);
#[derive(Deserialize)]
struct IdentityAssertionKeyId(usize);
struct IdentityAssertionKeyId(u32);

#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
Expand Down Expand Up @@ -591,6 +591,7 @@ fn gen_jwt(user: &UserCreate) -> Result<Jwt> {
kid: user.iak.0,
iat: iat_seconds,
exp: iat_seconds + 120,
uid: None,
};
let header = Header::new(Algorithm::ES256);
let pem = std::fs::read_to_string(user.pem_file)?;
Expand Down

0 comments on commit a8a9b52

Please sign in to comment.