From 9f15de77f92a4f3bdd76039d5a851e608d244c0f Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Fri, 13 Nov 2020 23:20:26 +0100 Subject: add suggestion ..Default::default() for remaining struct fields in a constructor #6492 Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- crates/assists/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assists/src/utils.rs b/crates/assists/src/utils.rs index 3fef75d57..7bd338e99 100644 --- a/crates/assists/src/utils.rs +++ b/crates/assists/src/utils.rs @@ -258,7 +258,7 @@ pub mod convert { } pub mod default { - pub trait Default: Sized { + pub trait Default { fn default() -> Self; } } -- cgit v1.2.3