fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: empty String is being created manually 2 --> $DIR/manual_string_new.rs:13:13 3 | 4LL | let _ = "".to_string(); 5 | ^^^^^^^^^^^^^^ help: consider using: `String::new()` 6 | 7 = note: `-D clippy::manual-string-new` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::manual_string_new)]` 9 10error: empty String is being created manually 11 --> $DIR/manual_string_new.rs:16:13 12 | 13LL | let _ = "".to_owned(); 14 | ^^^^^^^^^^^^^ help: consider using: `String::new()` 15 16error: empty String is being created manually 17 --> $DIR/manual_string_new.rs:19:21 18 | 19LL | let _: String = "".into(); 20 | ^^^^^^^^^ help: consider using: `String::new()` 21 22error: empty String is being created manually 23 --> $DIR/manual_string_new.rs:26:13 24 | 25LL | let _ = String::from(""); 26 | ^^^^^^^^^^^^^^^^ help: consider using: `String::new()` 27 28error: empty String is being created manually 29 --> $DIR/manual_string_new.rs:27:13 30 | 31LL | let _ = <String>::from(""); 32 | ^^^^^^^^^^^^^^^^^^ help: consider using: `String::new()` 33 34error: empty String is being created manually 35 --> $DIR/manual_string_new.rs:32:13 36 | 37LL | let _ = String::try_from("").unwrap(); 38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `String::new()` 39 40error: empty String is being created manually 41 --> $DIR/manual_string_new.rs:38:21 42 | 43LL | let _: String = From::from(""); 44 | ^^^^^^^^^^^^^^ help: consider using: `String::new()` 45 46error: empty String is being created manually 47 --> $DIR/manual_string_new.rs:43:21 48 | 49LL | let _: String = TryFrom::try_from("").unwrap(); 50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `String::new()` 51 52error: empty String is being created manually 53 --> $DIR/manual_string_new.rs:46:21 54 | 55LL | let _: String = TryFrom::try_from("").expect("this should warn"); 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `String::new()` 57 58error: aborting due to 9 previous errors 59