summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/needless_splitn.stderr
blob: 66de2256554e3ad2ea2ea1b0ddd13891a94e6845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
error: unnecessary use of `splitn`
  --> $DIR/needless_splitn.rs:15:13
   |
LL |     let _ = str.splitn(2, '=').next();
   |             ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
   |
   = note: `-D clippy::needless-splitn` implied by `-D warnings`

error: unnecessary use of `splitn`
  --> $DIR/needless_splitn.rs:16:13
   |
LL |     let _ = str.splitn(2, '=').nth(0);
   |             ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`

error: unnecessary use of `splitn`
  --> $DIR/needless_splitn.rs:19:18
   |
LL |     let (_, _) = str.splitn(3, '=').next_tuple().unwrap();
   |                  ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`

error: unnecessary use of `rsplitn`
  --> $DIR/needless_splitn.rs:22:13
   |
LL |     let _ = str.rsplitn(2, '=').next();
   |             ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`

error: unnecessary use of `rsplitn`
  --> $DIR/needless_splitn.rs:23:13
   |
LL |     let _ = str.rsplitn(2, '=').nth(0);
   |             ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`

error: unnecessary use of `rsplitn`
  --> $DIR/needless_splitn.rs:26:18
   |
LL |     let (_, _) = str.rsplitn(3, '=').next_tuple().unwrap();
   |                  ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`

error: aborting due to 6 previous errors