Allow clone_on_copy for FromRef (#1749)

This commit is contained in:
Jules Guesnon
2023-02-12 12:16:53 +01:00
committed by GitHub
parent c454e37a1c
commit 67422bb1c2
+1
View File
@@ -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