mirror of
https://github.com/tokio-rs/axum.git
synced 2025-04-26 13:56:22 +02:00
Allow clone_on_copy
for FromRef
(#1749)
This commit is contained in:
parent
c454e37a1c
commit
67422bb1c2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue