From bd8227494dda5e5a34ce875a66d4378da0861c37 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Wed, 9 Oct 2024 18:56:20 +0200 Subject: [PATCH] Satisfy nighty clippy --- components/salsa-macros/src/xform.rs | 2 +- src/input/setter.rs | 2 +- src/table/sync.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/salsa-macros/src/xform.rs b/components/salsa-macros/src/xform.rs index 43ffa046..4c719cbe 100644 --- a/components/salsa-macros/src/xform.rs +++ b/components/salsa-macros/src/xform.rs @@ -5,7 +5,7 @@ pub(crate) struct ChangeLt<'a> { to: String, } -impl<'a> ChangeLt<'a> { +impl ChangeLt<'_> { pub fn elided_to(db_lt: &syn::Lifetime) -> Self { ChangeLt { from: Some("_"), diff --git a/src/input/setter.rs b/src/input/setter.rs index 6a636c5a..4f157565 100644 --- a/src/input/setter.rs +++ b/src/input/setter.rs @@ -45,7 +45,7 @@ where } } -impl<'setter, C, S, F> Setter for SetterImpl<'setter, C, S, F> +impl Setter for SetterImpl<'_, C, S, F> where C: Configuration, S: FnOnce(&mut C::Fields, F) -> F, diff --git a/src/table/sync.rs b/src/table/sync.rs index 6a02bc8c..dfe78a23 100644 --- a/src/table/sync.rs +++ b/src/table/sync.rs @@ -85,7 +85,7 @@ pub(crate) struct ClaimGuard<'me> { sync_table: &'me SyncTable, } -impl<'me> ClaimGuard<'me> { +impl ClaimGuard<'_> { fn remove_from_map_and_unblock_queries(&self, wait_result: WaitResult) { let mut syncs = self.sync_table.syncs.write(); @@ -101,7 +101,7 @@ impl<'me> ClaimGuard<'me> { } } -impl<'me> Drop for ClaimGuard<'me> { +impl Drop for ClaimGuard<'_> { fn drop(&mut self) { let wait_result = if std::thread::panicking() { WaitResult::Panicked