diff options
author | pennae <github@quasiparticle.net> | 2022-07-17 17:32:54 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-07-17 17:32:54 +0200 |
commit | 3eda99e9efbdfc2cb0e20932f20018d53baf5a64 (patch) | |
tree | 058d266f4a193bd4de931f39bb115c7225376507 /src/api/auth/mod.rs | |
parent | 1ef9d67fb6979ea91812c4ea892f7ecc12b3170f (diff) | |
download | minor-skulk-3eda99e9efbdfc2cb0e20932f20018d53baf5a64.tar.gz minor-skulk-3eda99e9efbdfc2cb0e20932f20018d53baf5a64.tar.xz minor-skulk-3eda99e9efbdfc2cb0e20932f20018d53baf5a64.zip |
make the Clone bytes types Copy as well
u8 arrays are copy, no need to not have our wrappers be copy.
Diffstat (limited to 'src/api/auth/mod.rs')
-rw-r--r-- | src/api/auth/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/auth/mod.rs b/src/api/auth/mod.rs index a2a94e0..5c4f973 100644 --- a/src/api/auth/mod.rs +++ b/src/api/auth/mod.rs @@ -142,7 +142,7 @@ impl crate::auth::AuthSource for WithFxaLogin { async fn hawk(r: &Request<'_>, id: &SessionID) -> anyhow::Result<(HawkKey, Self::Context)> { let db = Authenticated::<(), Self>::get_conn(r).await?; let k = db.use_session(id).await?; - Ok((k.req_hmac_key.clone(), k)) + Ok((k.req_hmac_key, k)) } async fn bearer_token( _: &Request<'_>, |