diff --git a/relay-config/src/config.rs b/relay-config/src/config.rs index 3f4045d96a..a4d9935864 100644 --- a/relay-config/src/config.rs +++ b/relay-config/src/config.rs @@ -687,6 +687,7 @@ fn default_projectconfig_cache_prefix() -> String { "relayconfig".to_owned() } +#[allow(clippy::unnecessary_wraps)] fn default_max_rate_limit() -> Option { Some(300) // 5 minutes } diff --git a/relay-general/src/pii/config.rs b/relay-general/src/pii/config.rs index d4ab45b2ad..0b421fa446 100644 --- a/relay-general/src/pii/config.rs +++ b/relay-general/src/pii/config.rs @@ -57,6 +57,7 @@ impl PartialEq for Pattern { } } +#[allow(clippy::unnecessary_wraps)] fn replace_groups_default() -> Option> { let mut set = BTreeSet::new(); set.insert(0); diff --git a/relay-general/src/types/traits.rs b/relay-general/src/types/traits.rs index fb9d8e1ac4..fee1fa4027 100644 --- a/relay-general/src/types/traits.rs +++ b/relay-general/src/types/traits.rs @@ -86,8 +86,10 @@ pub trait FromValue: Debug { } /// Implemented for all meta structures. +// TODO: This trait should be named `IntoValue`. pub trait ToValue: Debug + Empty { /// Boxes the meta structure back into a value. + #[allow(clippy::wrong_self_convention)] fn to_value(self) -> Value where Self: Sized;