C-enhancementgood first issue
Repository metrics
- Stars
- (10,406 stars)
- PR merge metrics
- (平均マージ 19d 22h) (30d で 113 merged PRs)
説明
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.