mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 18:43:38 +00:00
add suggestion ..Default::default() for remaining struct fields in a constructor #6492
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
e73d140b51
commit
9f15de77f9
@ -258,7 +258,7 @@ pub mod convert {
|
||||
}
|
||||
|
||||
pub mod default {
|
||||
pub trait Default: Sized {
|
||||
pub trait Default {
|
||||
fn default() -> Self;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user