Skip to content

Commit 2cd78ba

Browse files
committed
chore: allow clippy::needless_update
This lint forbids using `..Default::default()` in struct initializers after all fields have already been initialized, but this is a useful pattern if you know you want to add more fields to a struct in a future PR without needing to touch a ton of initializers in unittests again (_heavy foreshadowing_). So silence the paperclip. Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent dcf08bb commit 2cd78ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ exit = "warn"
2121
tests_outside_test_module = "warn"
2222
assertions_on_result_states = "warn"
2323
error_impl_error = "warn"
24+
needless-update = "allow"
2425

2526
[profile.dev]
2627
panic = "abort"

0 commit comments

Comments
 (0)