rust/tests/ui/single_char_push_str.fixed

16 lines
301 B
Rust
Raw Normal View History

// run-rustfix
#![warn(clippy::single_char_push_str)]
fn main() {
let mut string = String::new();
string.push('R');
string.push('\'');
string.push('u');
2020-08-14 05:52:19 -05:00
string.push_str("st");
string.push_str("");
string.push('\x52');
string.push('\u{0052}');
string.push('a');
}