fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unnecessary struct building 2 --> $DIR/unnecessary_struct_initialization.rs:32:9 3 | 4LL | Self { ..*self } 5 | ^^^^^^^^^^^^^^^^ help: replace with: `*self` 6 | 7 = note: `-D clippy::unnecessary-struct-initialization` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::unnecessary_struct_initialization)]` 9 10error: unnecessary struct building 11 --> $DIR/unnecessary_struct_initialization.rs:39:17 12 | 13LL | let mut b = S { ..a }; 14 | ^^^^^^^^^ help: replace with: `a` 15 16error: unnecessary struct building 17 --> $DIR/unnecessary_struct_initialization.rs:42:18 18 | 19LL | let c = &mut S { ..b }; 20 | ^^^^^^^^^ help: replace with: `b` 21 22error: unnecessary struct building 23 --> $DIR/unnecessary_struct_initialization.rs:50:14 24 | 25LL | let g = &S { ..f }; 26 | ^^^^^^^^^ help: replace with: `f` 27 28error: unnecessary struct building 29 --> $DIR/unnecessary_struct_initialization.rs:53:18 30 | 31LL | let h = &mut S { 32 | __________________^ 33LL | | ..*Box::new(S { f: String::from("foo") }) 34LL | | }; 35 | |_____^ help: replace with: `*Box::new(S { f: String::from("foo") })` 36 37error: unnecessary struct building 38 --> $DIR/unnecessary_struct_initialization.rs:72:18 39 | 40LL | let p = &mut T { 41 | __________________^ 42LL | | ..*Box::new(T { f: 5 }) 43LL | | }; 44 | |_____^ help: replace with: `*Box::new(T { f: 5 })` 45 46error: aborting due to 6 previous errors 47