1 error: used consecutive `str::replace` call
2 --> $DIR/collapsible_str_replace.rs:18:24
4 LL | let _ = misspelled.replace('s', "l").replace('u', "l");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(|c| matches!(c, 'u' | 's'), "l")`
7 = note: `-D clippy::collapsible-str-replace` implied by `-D warnings`
9 error: used consecutive `str::replace` call
10 --> $DIR/collapsible_str_replace.rs:20:24
12 LL | let _ = misspelled.replace('s', l).replace('u', l);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(|c| matches!(c, 'u' | 's'), l)`
15 error: used consecutive `str::replace` call
16 --> $DIR/collapsible_str_replace.rs:22:24
18 LL | let _ = misspelled.replace('s', "l").replace('u', "l").replace('p', "l");
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(|c| matches!(c, 'p' | 'u' | 's'), "l")`
21 error: used consecutive `str::replace` call
22 --> $DIR/collapsible_str_replace.rs:25:10
24 LL | .replace('s', "l")
26 LL | | .replace('u', "l")
27 LL | | .replace('p', "l")
28 LL | | .replace('d', "l");
29 | |__________________________^ help: replace with: `replace(|c| matches!(c, 'd' | 'p' | 'u' | 's'), "l")`
31 error: used consecutive `str::replace` call
32 --> $DIR/collapsible_str_replace.rs:33:24
34 LL | let _ = misspelled.replace(s, "l").replace('u', "l");
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(&['u' , s], "l")`
37 error: used consecutive `str::replace` call
38 --> $DIR/collapsible_str_replace.rs:35:24
40 LL | let _ = misspelled.replace(s, "l").replace('u', "l").replace('p', "l");
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(&['p' , 'u' , s], "l")`
43 error: used consecutive `str::replace` call
44 --> $DIR/collapsible_str_replace.rs:37:24
46 LL | let _ = misspelled.replace(s, "l").replace(u, "l").replace('p', "l");
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(&['p' , u , s], "l")`
49 error: used consecutive `str::replace` call
50 --> $DIR/collapsible_str_replace.rs:39:24
52 LL | let _ = misspelled.replace(s, "l").replace(u, "l").replace(p, "l");
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(&[p , u , s], "l")`
55 error: aborting due to 8 previous errors