diff --git a/Cargo.toml b/Cargo.toml index a79009455f..ef17c0bdcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,6 +98,7 @@ with_crash_reporting = [] [workspace.lints.clippy] allow-attributes = "warn" dbg-macro = "warn" +elidable-lifetime-names = "warn" str-to-string = "warn" string-to-string = "warn" tests-outside-test-module = "warn" diff --git a/src/api/mod.rs b/src/api/mod.rs index a125ca3501..0049cb22e0 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1468,7 +1468,7 @@ pub struct FetchEventsOptions<'a> { pub sort: &'a str, } -impl<'a> FetchEventsOptions<'a> { +impl FetchEventsOptions<'_> { /// Generate query parameters as a vector of strings pub fn to_query_params(&self) -> Vec { let mut params = vec![format!("dataset={}", QueryArg(self.dataset.as_str()))]; diff --git a/src/commands/dart_symbol_map/upload.rs b/src/commands/dart_symbol_map/upload.rs index b290914f6a..9786446e0f 100644 --- a/src/commands/dart_symbol_map/upload.rs +++ b/src/commands/dart_symbol_map/upload.rs @@ -20,19 +20,19 @@ struct DartSymbolMapObject<'a> { debug_id: DebugId, } -impl<'a> AsRef<[u8]> for DartSymbolMapObject<'a> { +impl AsRef<[u8]> for DartSymbolMapObject<'_> { fn as_ref(&self) -> &[u8] { self.bytes } } -impl<'a> Display for DartSymbolMapObject<'a> { +impl Display for DartSymbolMapObject<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult { write!(f, "dartsymbolmap {}", self.name) } } -impl<'a> Assemblable for DartSymbolMapObject<'a> { +impl Assemblable for DartSymbolMapObject<'_> { fn name(&self) -> Cow<'_, str> { Cow::Borrowed(self.name) } diff --git a/src/utils/sourcemaps/inject.rs b/src/utils/sourcemaps/inject.rs index 4cc9e26f7a..f2162404c0 100644 --- a/src/utils/sourcemaps/inject.rs +++ b/src/utils/sourcemaps/inject.rs @@ -106,7 +106,7 @@ impl InjectReportBuilder { && self.skipped_sourcemaps.is_empty() } - pub fn into_report<'a>(self, sourcefiles: &'a SourceFiles) -> InjectReport<'a> { + pub fn into_report(self, sourcefiles: &SourceFiles) -> InjectReport<'_> { InjectReport { inner: self, sourcefiles,