Skip to content

Commit

Permalink
Satisfy nighty clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Oct 9, 2024
1 parent 862153c commit bd82274
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/salsa-macros/src/xform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("_"),
Expand Down
2 changes: 1 addition & 1 deletion src/input/setter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ where
}
}

impl<'setter, C, S, F> Setter for SetterImpl<'setter, C, S, F>
impl<C, S, F> Setter for SetterImpl<'_, C, S, F>
where
C: Configuration,
S: FnOnce(&mut C::Fields, F) -> F,
Expand Down
4 changes: 2 additions & 2 deletions src/table/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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
Expand Down

0 comments on commit bd82274

Please sign in to comment.