mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +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=>
|
quote_spanned! {span=>
|
||||||
|
#[allow(clippy::clone_on_copy)]
|
||||||
impl ::axum::extract::FromRef<#state> for #field_ty {
|
impl ::axum::extract::FromRef<#state> for #field_ty {
|
||||||
fn from_ref(state: &#state) -> Self {
|
fn from_ref(state: &#state) -> Self {
|
||||||
#body
|
#body
|
||||||
|
|||||||
Reference in New Issue
Block a user