diff options
Diffstat (limited to 'src/tools/clippy/src/docs/let_underscore_must_use.txt')
-rw-r--r-- | src/tools/clippy/src/docs/let_underscore_must_use.txt | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/tools/clippy/src/docs/let_underscore_must_use.txt b/src/tools/clippy/src/docs/let_underscore_must_use.txt deleted file mode 100644 index 270b81d9a..000000000 --- a/src/tools/clippy/src/docs/let_underscore_must_use.txt +++ /dev/null @@ -1,17 +0,0 @@ -### What it does -Checks for `let _ = <expr>` where expr is `#[must_use]` - -### Why is this bad? -It's better to explicitly handle the value of a `#[must_use]` -expr - -### Example -``` -fn f() -> Result<u32, u32> { - Ok(0) -} - -let _ = f(); -// is_ok() is marked #[must_use] -let _ = f().is_ok(); -```
\ No newline at end of file |