Skip to content

Commit

Permalink
chore: Globally allow clippy::unneeded_field_pattern
Browse files Browse the repository at this point in the history
Often times we want to explicty destructure instead of using ..
because the compiler will emit errors if the structure changes.

(see rust-lang/rust-clippy#1741 and #69)
  • Loading branch information
Herschel committed Oct 2, 2019
1 parent 8a43523 commit 2740f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/src/avm1/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ unsafe impl<'gc> gc_arena::Collect for Property<'gc> {
}

impl fmt::Debug for Property<'_> {
#[allow(clippy::unneeded_field_pattern)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Property::Virtual { get: _, set } => f
Expand Down
2 changes: 2 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::unneeded_field_pattern)]

#[macro_use]
mod display_object;

Expand Down

0 comments on commit 2740f3c

Please sign in to comment.