Skip to content

Commit

Permalink
tests: fix clippy warnings in tests
Browse files Browse the repository at this point in the history
didn't use --all-targets locally...
  • Loading branch information
martinetd committed Sep 8, 2024
1 parent fa744db commit c38ac9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ mod tests {
let session = AuthSession::Matrix(MatrixSession {
meta: SessionMeta {
user_id: "@test:domain.tld".try_into()?,
device_id: "ABCDEFGHIJ".try_into()?,
device_id: "ABCDEFGHIJ".into(),
},
tokens: MatrixSessionTokens {
access_token: "abc_abcdefg_abcdefgh_abcdef".into(),
Expand All @@ -184,7 +184,7 @@ mod tests {
let blob_string = &encrypt_blob("pass", "domain.tld", session)?;

// can decrypt what we just encrypted
let session = decrypt_blob("pass", &blob_string)?;
let session = decrypt_blob("pass", blob_string)?;
assert_eq!(session.homeserver, "domain.tld");
assert_eq!(session.matrix_session.user_id, "@test:domain.tld");
assert_eq!(session.matrix_session.device_id, "ABCDEFGHIJ");
Expand Down

0 comments on commit c38ac9e

Please sign in to comment.