|
| 1 | +error: calling `push_str()` using a single-character string literal |
| 2 | + --> $DIR/single_char_add_str.rs:14:5 |
| 3 | + | |
| 4 | +LL | string.push_str("R"); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('R')` |
| 6 | + | |
| 7 | + = note: `-D clippy::single-char-add-str` implied by `-D warnings` |
| 8 | + |
| 9 | +error: calling `push_str()` using a single-character string literal |
| 10 | + --> $DIR/single_char_add_str.rs:15:5 |
| 11 | + | |
| 12 | +LL | string.push_str("'"); |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('/'')` |
| 14 | + |
| 15 | +error: calling `push_str()` using a single-character string literal |
| 16 | + --> $DIR/single_char_add_str.rs:20:5 |
| 17 | + | |
| 18 | +LL | string.push_str("/x52"); |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('/x52')` |
| 20 | + |
| 21 | +error: calling `push_str()` using a single-character string literal |
| 22 | + --> $DIR/single_char_add_str.rs:21:5 |
| 23 | + | |
| 24 | +LL | string.push_str("/u{0052}"); |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('/u{0052}')` |
| 26 | + |
| 27 | +error: calling `push_str()` using a single-character string literal |
| 28 | + --> $DIR/single_char_add_str.rs:22:5 |
| 29 | + | |
| 30 | +LL | string.push_str(r##"a"##); |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `string.push('a')` |
| 32 | + |
| 33 | +error: calling `push_str()` using a single-character string literal |
| 34 | + --> $DIR/single_char_add_str.rs:24:5 |
| 35 | + | |
| 36 | +LL | get_string!().push_str("ö"); |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `get_string!().push('ö')` |
| 38 | + |
| 39 | +error: calling `insert_str()` using a single-character string literal |
| 40 | + --> $DIR/single_char_add_str.rs:29:5 |
| 41 | + | |
| 42 | +LL | string.insert_str(0, "R"); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, 'R')` |
| 44 | + |
| 45 | +error: calling `insert_str()` using a single-character string literal |
| 46 | + --> $DIR/single_char_add_str.rs:30:5 |
| 47 | + | |
| 48 | +LL | string.insert_str(1, "'"); |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(1, '/'')` |
| 50 | + |
| 51 | +error: calling `insert_str()` using a single-character string literal |
| 52 | + --> $DIR/single_char_add_str.rs:35:5 |
| 53 | + | |
| 54 | +LL | string.insert_str(0, "/x52"); |
| 55 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, '/x52')` |
| 56 | + |
| 57 | +error: calling `insert_str()` using a single-character string literal |
| 58 | + --> $DIR/single_char_add_str.rs:36:5 |
| 59 | + | |
| 60 | +LL | string.insert_str(0, "/u{0052}"); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(0, '/u{0052}')` |
| 62 | + |
| 63 | +error: calling `insert_str()` using a single-character string literal |
| 64 | + --> $DIR/single_char_add_str.rs:38:5 |
| 65 | + | |
| 66 | +LL | string.insert_str(x, r##"a"##); |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(x, 'a')` |
| 68 | + |
| 69 | +error: calling `insert_str()` using a single-character string literal |
| 70 | + --> $DIR/single_char_add_str.rs:40:5 |
| 71 | + | |
| 72 | +LL | string.insert_str(Y, r##"a"##); |
| 73 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `string.insert(Y, 'a')` |
| 74 | + |
| 75 | +error: calling `insert_str()` using a single-character string literal |
| 76 | + --> $DIR/single_char_add_str.rs:42:5 |
| 77 | + | |
| 78 | +LL | get_string!().insert_str(1, "?"); |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `insert` with a character literal: `get_string!().insert(1, '?')` |
| 80 | + |
| 81 | +error: aborting due to 13 previous errors |
| 82 | + |
0 commit comments