Run cargo clippy --fix to fix CI (#2568)

… and allow one lint.
This commit is contained in:
Martin Nordholts 2024-02-09 00:55:59 +01:00 committed by GitHub
parent 5f7fcc5866
commit a3ec44a5a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -87,8 +87,7 @@ where
"Extension of type `{}` was not found. Perhaps you forgot to add it? See `axum::Extension`.",
std::any::type_name::<T>()
))
})
.map(|x| x.clone())?;
}).cloned()?;
Ok(Extension(value))
}

View file

@ -10,4 +10,5 @@ pub(crate) mod tracing_helpers;
pub(crate) fn assert_send<T: Send>() {}
pub(crate) fn assert_sync<T: Sync>() {}
#[allow(dead_code)]
pub(crate) struct NotSendSync(*const ());