Use 'dyn' in codegen to silence 'bare_trait_objects' lint.

This commit is contained in:
jeb 2018-11-18 19:38:30 -08:00 committed by Sergio Benitez
parent d14c3393a0
commit ed4055925d
1 changed files with 1 additions and 1 deletions

View File

@ -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
});
}