Skip to content

Commit

Permalink
Ignore derivable_impls clippy false positive
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#7655

    error: this `impl` can be derived
       --> src/map.rs:254:1
        |
    254 | / impl Default for Map<String, Value> {
    255 | |     #[inline]
    256 | |     fn default() -> Self {
    257 | |         Map {
    ...   |
    260 | |     }
    261 | | }
        | |_^
        |
        = note: `#[deny(clippy::derivable_impls)]` implied by `#[deny(clippy::all)]`
        = help: try annotating `map::Map` with `#[derive(Default)]`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
  • Loading branch information
dtolnay committed Sep 10, 2021
1 parent f6bbab4 commit 133bb61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ impl Map<String, Value> {
}
}

#[allow(clippy::derivable_impls)] // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7655
impl Default for Map<String, Value> {
#[inline]
fn default() -> Self {
Expand Down

0 comments on commit 133bb61

Please sign in to comment.