From dbb0eac96daac509e06644ea4b5a333060c046f8 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 6 Sep 2020 14:22:52 -0700 Subject: [PATCH] Update clippy lint names type: changed --- src/invariant.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invariant.rs b/src/invariant.rs index 817972f..c391e8f 100644 --- a/src/invariant.rs +++ b/src/invariant.rs @@ -4,7 +4,7 @@ pub(crate) trait Invariant: Sized { fn invariant(self, invariant: D) -> Result; fn invariant_unwrap(self, invariant: D) -> T { - #![allow(clippy::result_unwrap_used)] + #![allow(clippy::unwrap_used)] self.invariant(invariant).unwrap() } } diff --git a/src/lib.rs b/src/lib.rs index 26d96a4..b95ad5c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,11 +9,11 @@ clippy::integer_arithmetic, clippy::integer_division, clippy::large_enum_variant, + clippy::map_unwrap_or, clippy::missing_docs_in_private_items, clippy::missing_inline_in_public_items, clippy::needless_pass_by_value, clippy::non_ascii_literal, - clippy::option_map_unwrap_or_else, clippy::shadow_reuse, clippy::struct_excessive_bools, clippy::too_many_lines,