From 2eacb3c146b7975ecad7c51079ac1b8b0f2803b1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 12 Aug 2015 07:47:21 +0200 Subject: [PATCH] README: update lint output --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1176841ca20..0a947e12ecf 100644 --- a/README.md +++ b/README.md @@ -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`: