summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/search_is_some.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/search_is_some.stderr')
-rw-r--r--src/tools/clippy/tests/ui/search_is_some.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/clippy/tests/ui/search_is_some.stderr b/src/tools/clippy/tests/ui/search_is_some.stderr
index 6bea8c674..7eff614d1 100644
--- a/src/tools/clippy/tests/ui/search_is_some.stderr
+++ b/src/tools/clippy/tests/ui/search_is_some.stderr
@@ -1,5 +1,5 @@
error: called `is_some()` after searching an `Iterator` with `find`
- --> $DIR/search_is_some.rs:14:13
+ --> $DIR/search_is_some.rs:15:13
|
LL | let _ = v.iter().find(|&x| {
| _____________^
@@ -12,7 +12,7 @@ LL | | ).is_some();
= note: `-D clippy::search-is-some` implied by `-D warnings`
error: called `is_some()` after searching an `Iterator` with `position`
- --> $DIR/search_is_some.rs:20:13
+ --> $DIR/search_is_some.rs:21:13
|
LL | let _ = v.iter().position(|&x| {
| _____________^
@@ -24,7 +24,7 @@ LL | | ).is_some();
= help: this is more succinctly expressed by calling `any()`
error: called `is_some()` after searching an `Iterator` with `rposition`
- --> $DIR/search_is_some.rs:26:13
+ --> $DIR/search_is_some.rs:27:13
|
LL | let _ = v.iter().rposition(|&x| {
| _____________^
@@ -36,13 +36,13 @@ LL | | ).is_some();
= help: this is more succinctly expressed by calling `any()`
error: called `is_some()` after searching an `Iterator` with `find`
- --> $DIR/search_is_some.rs:41:20
+ --> $DIR/search_is_some.rs:42:20
|
LL | let _ = (0..1).find(some_closure).is_some();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `any()` instead: `any(some_closure)`
error: called `is_none()` after searching an `Iterator` with `find`
- --> $DIR/search_is_some.rs:51:13
+ --> $DIR/search_is_some.rs:52:13
|
LL | let _ = v.iter().find(|&x| {
| _____________^
@@ -54,7 +54,7 @@ LL | | ).is_none();
= help: this is more succinctly expressed by calling `any()` with negation
error: called `is_none()` after searching an `Iterator` with `position`
- --> $DIR/search_is_some.rs:57:13
+ --> $DIR/search_is_some.rs:58:13
|
LL | let _ = v.iter().position(|&x| {
| _____________^
@@ -66,7 +66,7 @@ LL | | ).is_none();
= help: this is more succinctly expressed by calling `any()` with negation
error: called `is_none()` after searching an `Iterator` with `rposition`
- --> $DIR/search_is_some.rs:63:13
+ --> $DIR/search_is_some.rs:64:13
|
LL | let _ = v.iter().rposition(|&x| {
| _____________^
@@ -78,7 +78,7 @@ LL | | ).is_none();
= help: this is more succinctly expressed by calling `any()` with negation
error: called `is_none()` after searching an `Iterator` with `find`
- --> $DIR/search_is_some.rs:78:13
+ --> $DIR/search_is_some.rs:79:13
|
LL | let _ = (0..1).find(some_closure).is_none();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `!(0..1).any(some_closure)`