Skip to content

Commit fd2c860

Browse files
committed
feat: add comment
1 parent 3c4192f commit fd2c860

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/or_then_unwrap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fn main() {
2828
let instance = SomeStruct {};
2929
let _ = instance.or(Some(SomeStruct {})).unwrap(); // should not trigger lint
3030

31+
// or takes no argument
3132
let instance = SomeOtherStruct {};
3233
let _ = instance.or().unwrap(); // should not trigger lint and should not panic
3334

0 commit comments

Comments
 (0)