diff --git a/src/api/v4/token/restriction/update.rs b/src/api/v4/token/restriction/update.rs index 7c2a7c7d..cb9d92ef 100644 --- a/src/api/v4/token/restriction/update.rs +++ b/src/api/v4/token/restriction/update.rs @@ -102,7 +102,6 @@ mod tests { *, }; - use crate::assignment::types::Role as ProviderRole; use crate::token::{MockTokenProvider, types as provider_types}; #[tokio::test] diff --git a/src/token/fernet.rs b/src/token/fernet.rs index 3bf2a24f..96f164a7 100644 --- a/src/token/fernet.rs +++ b/src/token/fernet.rs @@ -374,10 +374,9 @@ pub(super) mod tests { if let Token::Unscoped(decrypted) = provider.decrypt(token).unwrap() { assert_eq!(decrypted.user_id, "4b7d364ad87d400bbd91798e3c15e9c2"); - assert_eq!( - decrypted.methods.clone().sort(), - ["password", "token"].sort() - ); + let mut methods_curr = decrypted.methods.clone(); + methods_curr.sort(); + assert_eq!(methods_curr, ["password", "token"]); assert_eq!( decrypted.expires_at.to_rfc3339(), "2025-02-20T17:40:13+00:00"