Skip to content

Commit 9f15de7

Browse files
committed
add suggestion ..Default::default() for remaining struct fields in a constructor #6492
Signed-off-by: Benjamin Coenen <[email protected]>
1 parent e73d140 commit 9f15de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/assists/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub mod convert {
258258
}
259259
260260
pub mod default {
261-
pub trait Default: Sized {
261+
pub trait Default {
262262
fn default() -> Self;
263263
}
264264
}

0 commit comments

Comments
 (0)