mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-15 00:00:20 +02:00
Allow clone_on_copy for FromRef (#1749)
This commit is contained in:
@@ -44,6 +44,7 @@ fn expand_field(state: &Ident, idx: usize, field: &Field) -> TokenStream {
|
||||
};
|
||||
|
||||
quote_spanned! {span=>
|
||||
#[allow(clippy::clone_on_copy)]
|
||||
impl ::axum::extract::FromRef<#state> for #field_ty {
|
||||
fn from_ref(state: &#state) -> Self {
|
||||
#body
|
||||
|
||||
Reference in New Issue
Block a user