]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_splitn.stderr
Auto merge of #8359 - flip1995:rustup, r=flip1995
[rust.git] / tests / ui / needless_splitn.stderr
1 error: unnecessary use of `splitn`
2   --> $DIR/needless_splitn.rs:15:13
3    |
4 LL |     let _ = str.splitn(2, '=').next();
5    |             ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
6    |
7    = note: `-D clippy::needless-splitn` implied by `-D warnings`
8
9 error: unnecessary use of `splitn`
10   --> $DIR/needless_splitn.rs:16:13
11    |
12 LL |     let _ = str.splitn(2, '=').nth(0);
13    |             ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
14
15 error: unnecessary use of `splitn`
16   --> $DIR/needless_splitn.rs:19:18
17    |
18 LL |     let (_, _) = str.splitn(3, '=').next_tuple().unwrap();
19    |                  ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
20
21 error: unnecessary use of `rsplitn`
22   --> $DIR/needless_splitn.rs:22:13
23    |
24 LL |     let _ = str.rsplitn(2, '=').next();
25    |             ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`
26
27 error: unnecessary use of `rsplitn`
28   --> $DIR/needless_splitn.rs:23:13
29    |
30 LL |     let _ = str.rsplitn(2, '=').nth(0);
31    |             ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`
32
33 error: unnecessary use of `rsplitn`
34   --> $DIR/needless_splitn.rs:26:18
35    |
36 LL |     let (_, _) = str.rsplitn(3, '=').next_tuple().unwrap();
37    |                  ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`
38
39 error: aborting due to 6 previous errors
40