Skip to content

Commit

Permalink
fix: clippy clippy::implied_bounds_in_impls
Browse files Browse the repository at this point in the history
  • Loading branch information
nanai10a committed Jun 19, 2024
1 parent b021241 commit 99d1329
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/db/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ use {
chrono::{DateTime, Duration, Utc},
rand::seq::SliceRandom,
serde::Serialize,
std::{
collections::HashMap,
ops::{Deref, DerefMut},
sync::Arc,
},
std::{collections::HashMap, ops::DerefMut, sync::Arc},
tokio::sync::Mutex,
};

Expand Down Expand Up @@ -49,7 +45,7 @@ impl MemoryDB {
})))
}

async fn inner(&self) -> impl Deref<Target = MemoryDBInner> + DerefMut + '_ {
async fn inner(&self) -> impl DerefMut<Target = MemoryDBInner> + DerefMut + '_ {
self.0.lock().await
}
}
Expand Down

0 comments on commit 99d1329

Please sign in to comment.