2021-12-06 05:33:31 -06:00
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:14:13
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
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`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:15:13
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | let _ = str.splitn(2, '=').nth(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:18:18
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | let (_, _) = str.splitn(3, '=').next_tuple().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `rsplitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:21:13
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | let _ = str.rsplitn(2, '=').next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `rsplitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:22:13
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | let _ = str.rsplitn(2, '=').nth(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `rsplitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:25:18
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | let (_, _) = str.rsplitn(3, '=').next_tuple().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try this: `str.rsplit('=')`
|
|
|
|
|
2022-05-05 09:12:52 -05:00
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:27:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = str.splitn(5, '=').next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:28:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = str.splitn(5, '=').nth(3);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try this: `str.split('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:34:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = s.splitn(2, '=').next()?;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this: `s.split('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:35:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = s.splitn(2, '=').nth(0)?;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this: `s.split('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `rsplitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:36:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = s.rsplitn(2, '=').next()?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try this: `s.rsplit('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `rsplitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:37:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = s.rsplitn(2, '=').nth(0)?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try this: `s.rsplit('=')`
|
|
|
|
|
|
|
|
error: unnecessary use of `splitn`
|
2022-12-01 11:29:38 -06:00
|
|
|
--> $DIR/needless_splitn.rs:45:13
|
2022-05-05 09:12:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = "key=value".splitn(2, '=').nth(0).unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `"key=value".split('=')`
|
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
2021-12-06 05:33:31 -06:00
|
|
|
|