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
This lint exists today (along with lints for all the other kinds of panic-like macros).
#[warn(clippy::panic)]fnf(){panic!();}
warning: `panic` should not be present in production code
--> src/main.rs:3:5
|
3 | panic!();
| ^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic
Given that there's a lint for
Result::unwrap
andOption::unwrap
being used, I was surprised that this wasn't present.The text was updated successfully, but these errors were encountered: