feat: add comment

This commit is contained in:
Max Baumann 2022-03-18 14:45:48 +01:00
parent 3c4192f3e9
commit fd2c860171
No known key found for this signature in database
GPG Key ID: 20FA1609B03B1D6D

View File

@ -28,6 +28,7 @@ fn main() {
let instance = SomeStruct {};
let _ = instance.or(Some(SomeStruct {})).unwrap(); // should not trigger lint
// or takes no argument
let instance = SomeOtherStruct {};
let _ = instance.or().unwrap(); // should not trigger lint and should not panic