1
0
Fork 0
mirror of https://github.com/tokio-rs/axum.git synced 2025-04-26 13:56:22 +02:00

Allow clone_on_copy for FromRef ()

This commit is contained in:
Jules Guesnon 2023-02-12 20:16:53 +09:00 committed by GitHub
parent c454e37a1c
commit 67422bb1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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