Skip to content

Commit 2fb55de

Browse files
committed
Merge pull request #101 from ogham/patch-1
Remove redundant 'redundant_closure' description
2 parents 418ed3b + e774fd1 commit 2fb55de

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Lints included in this crate:
2626
- `len_zero`: Warns on `_.len() == 0` and suggests using `_.is_empty()` (or similar comparisons with `>` or `!=`)
2727
- `len_without_is_empty`: Warns on traits or impls that have a `.len()` but no `.is_empty()` method
2828
- `cmp_owned`: Warns on creating owned instances for comparing with others, e.g. `x == "foo".to_string()`
29-
- `redundant_closure` warns on creating a closure where none is needed, e.g. `|x| foo(x)`, where `foo` can be used directly
3029
- `inline_always`: Warns on `#[inline(always)]`, because in most cases it is a bad idea
3130
- `collapsible_if`: Warns on cases where two nested `if`-expressions can be collapsed into one, e.g. `if x { if y { foo() } }` can be written as `if x && y { foo() }`
3231
- `zero_width_space`: Warns on encountering a unicode zero-width space

0 commit comments

Comments
 (0)