mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
22 lines
639 B
Text
22 lines
639 B
Text
error: calling `.extend(_.chars())`
|
|
--> $DIR/string_extend.rs:25:5
|
|
|
|
|
25 | s.extend(abc.chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)`
|
|
|
|
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> $DIR/string_extend.rs:28:5
|
|
|
|
|
28 | s.extend("abc".chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> $DIR/string_extend.rs:31:5
|
|
|
|
|
31 | s.extend(def.chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|