Skip to content

Commit

Permalink
Run cargo clippy --fix to fix CI (#2568)
Browse files Browse the repository at this point in the history
… and allow one lint.
  • Loading branch information
Enselic committed Feb 8, 2024
1 parent 5f7fcc5 commit a3ec44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions axum/src/extension.rs
Expand Up @@ -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))
}
Expand Down
1 change: 1 addition & 0 deletions axum/src/test_helpers/mod.rs
Expand Up @@ -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 ());

0 comments on commit a3ec44a

Please sign in to comment.