mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 19:43:20 +00:00
29 lines
907 B
Text
29 lines
907 B
Text
error: calling `.extend(_.chars())`
|
|
--> tests/ui/string_extend.rs:16:5
|
|
|
|
|
LL | s.extend(abc.chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(abc)`
|
|
|
|
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::string_extend_chars)]`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> tests/ui/string_extend.rs:19:5
|
|
|
|
|
LL | s.extend("abc".chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str("abc")`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> tests/ui/string_extend.rs:22:5
|
|
|
|
|
LL | s.extend(def.chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&def)`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> tests/ui/string_extend.rs:32:5
|
|
|
|
|
LL | s.extend(abc[0..2].chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&abc[0..2])`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|