We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd048e commit 2219f3cCopy full SHA for 2219f3c
clippy_lints/src/default_instead_of_iter_empty.rs
@@ -12,7 +12,7 @@ declare_clippy_lint! {
12
/// It checks for `std::iter::Empty::default()` and suggests replacing it with
13
/// `std::iter::empty()`.
14
/// ### Why is this bad?
15
- /// `std::iter::empty()` is shorter than `std::iter::Empty::default()` and returns an equivalent result
+ /// `std::iter::empty()` is the more idiomatic way.
16
/// ### Example
17
/// ```rust
18
/// let _ = std::iter::Empty::<usize>::default();
0 commit comments