all: address clippy lints
This commit is contained in:
parent
e5fd0fa192
commit
9e67158f47
29 changed files with 31 additions and 68 deletions
|
|
@ -37,7 +37,7 @@ impl AsyncEvent {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn triggered(&self) -> AsyncEventTriggered {
|
||||
pub fn triggered(&self) -> AsyncEventTriggered<'_> {
|
||||
AsyncEventTriggered { ae: self }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ impl<P: Object> Bindings<P> {
|
|||
self.bindings.clear();
|
||||
}
|
||||
|
||||
pub fn lock(&self) -> Locked<(ClientId, ObjectId), Rc<P>> {
|
||||
pub fn lock(&self) -> Locked<'_, (ClientId, ObjectId), Rc<P>> {
|
||||
self.bindings.lock()
|
||||
}
|
||||
}
|
||||
|
|
@ -89,7 +89,7 @@ impl<P: Object> PerClientBindings<P> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn borrow(&self) -> Ref<AHashMap<ClientId, AHashMap<ObjectId, Rc<P>>>> {
|
||||
pub fn borrow(&self) -> Ref<'_, AHashMap<ClientId, AHashMap<ObjectId, Rc<P>>>> {
|
||||
self.bindings.borrow()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#[expect(dead_code)]
|
||||
pub struct LogOnDrop(pub &'static str);
|
||||
|
||||
impl Drop for LogOnDrop {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ impl<T: Eq> RefCounted<T> {
|
|||
unsafe { self.map.get().deref().iter().map(|k| k.0).collect() }
|
||||
}
|
||||
|
||||
pub fn lock(&self) -> Locked<T> {
|
||||
pub fn lock(&self) -> Locked<'_, T> {
|
||||
unsafe {
|
||||
Locked {
|
||||
vec: mem::take(self.map.get().deref_mut()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue