You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code can be used with the latest version of rocket on a fresh cargo init.
#![warn(clippy::pedantic)]#[macro_use]externcrate rocket;#[get("/<name>/<age>")]fnhello(name:&str,age:u8) -> String{format!("Hello, {} year old named {}!", age, name)}#[launch]fnrocket() -> _{
rocket::build().mount("/hello",routes![hello])}
Switching to a static return type Rocket<Build> does not change the warnings.
I believe this is because the #[launch] macro uses many underscore bindings, without allow.
Description
I generally have
clippy::pedantic
set to warn, and trying to use the default example code.The specific lints are:
To Reproduce
The following code can be used with the latest version of rocket on a fresh
cargo init
.Switching to a static return type
Rocket<Build>
does not change the warnings.I believe this is because the
#[launch]
macro uses many underscore bindings, without allow.Expected Behavior
No unrelated lints to appear from within the launch derive.
Environment:
Based on a similar issue #2655
The text was updated successfully, but these errors were encountered: