diff --git a/iam-common/id.rs b/iam-common/id.rs index 8b526d8..21fc60f 100644 --- a/iam-common/id.rs +++ b/iam-common/id.rs @@ -129,7 +129,7 @@ impl<'de> Deserialize<'de> for Id { struct Visitor; - impl<'de> de::Visitor<'de> for Visitor { + impl de::Visitor<'_> for Visitor { type Value = Id; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { diff --git a/iam-common/keys/key.rs b/iam-common/keys/key.rs index a2605fa..f691cd0 100644 --- a/iam-common/keys/key.rs +++ b/iam-common/keys/key.rs @@ -1,9 +1,9 @@ -use std::env; use base64::{prelude::BASE64_STANDARD, Engine}; use ed25519_dalek::{pkcs8::EncodePrivateKey, SecretKey, SigningKey, SECRET_KEY_LENGTH}; use jose_jwk::{Jwk, Okp, OkpCurves, Parameters}; use jsonwebtoken::{Algorithm, DecodingKey, EncodingKey}; use rand::rngs::OsRng; +use std::env; pub struct Key { pub(super) jwk: Jwk,