You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current help text implies it's only for trivial cases that can be solved by typing #[derive(Default)], but the lint really fires for any struct that has a pub fn new() -> Self, even ones that have logic inside them (which can't be replaced with a #[derive(Default)]).
Help text should indicate that it means either doing the derive, or implementing Default by hand.
The text was updated successfully, but these errors were encountered:
This is essentially a duplicate of #3697, which is younger; but got a detailed comment. The proposed change is slightly different form that one though.
The current help text implies it's only for trivial cases that can be solved by typing
#[derive(Default)]
, but the lint really fires for any struct that has apub fn new() -> Self
, even ones that have logic inside them (which can't be replaced with a#[derive(Default)]
).Help text should indicate that it means either doing the
derive
, or implementingDefault
by hand.The text was updated successfully, but these errors were encountered: