mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-20 14:41:58 +00:00
README: update lint output
This commit is contained in:
parent
854212ce85
commit
2eacb3c146
1 changed files with 2 additions and 5 deletions
|
@ -78,11 +78,8 @@ src/main.rs:8 match x {
|
|||
src/main.rs:9 Some(y) => println!("{:?}", y),
|
||||
src/main.rs:10 _ => ()
|
||||
src/main.rs:11 }
|
||||
src/main.rs:8:5: 11:6 note: Try if let Some(y) = x { ... }
|
||||
src/main.rs:8 match x {
|
||||
src/main.rs:9 Some(y) => println!("{:?}", y),
|
||||
src/main.rs:10 _ => ()
|
||||
src/main.rs:11 }
|
||||
src/main.rs:8:5: 11:6 help: Try
|
||||
if let Some(y) = x { println!("{:?}", y) }
|
||||
```
|
||||
|
||||
You can add options to `allow`/`warn`/`deny`:
|
||||
|
|
Loading…
Reference in a new issue