-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
We just added if_then_panic
, but then I realized there's a possible enhancement for assert_eq!
/assert_ne!
:
// before
if a != b {
panic!("hi");
}
// after
assert_eq!(a, b, "hi");
I think a rename to manual_assert
would be best. But we could also keep the current name (it still kinda makes sense) or create a new lint for this case.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy