mirror of https://github.com/rwf2/Rocket.git
Use 'dyn' in codegen to silence 'bare_trait_objects' lint.
This commit is contained in:
parent
d14c3393a0
commit
ed4055925d
|
@ -119,7 +119,7 @@ fn explode<'a, I>(route_str: &str, items: I) -> TokenStream2
|
|||
|
||||
// generating: arg tokens for format string
|
||||
fmt_exprs.push(quote_spanned! { span =>
|
||||
&#ident as &rocket::http::uri::UriDisplay
|
||||
&#ident as &dyn rocket::http::uri::UriDisplay
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue