mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Fix warnings for cloning references in generated code (#1676)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#![deny(noop_method_call)]
|
||||
|
||||
use axum_macros::FromRef;
|
||||
|
||||
#[derive(FromRef)]
|
||||
struct State {
|
||||
inner: &'static str,
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user