all: address clippy lints
This commit is contained in:
parent
0fe59effe2
commit
ae991b9038
28 changed files with 84 additions and 70 deletions
|
|
@ -78,7 +78,7 @@ impl BufFdIn {
|
|||
match self.ring.recvmsg(&self.fd, &mut iov, &mut self.in_fd).await {
|
||||
Ok(0) => return Err(BufFdError::Closed),
|
||||
Ok(n) => self.in_right += n,
|
||||
Err(e) => return Err(BufFdError::Ring(e.into())),
|
||||
Err(e) => return Err(BufFdError::Ring(e)),
|
||||
}
|
||||
if self.in_fd.len() > MAX_IN_FD {
|
||||
return Err(BufFdError::TooManyFds);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ impl<K: Eq, V, const N: usize> SmallMap<K, V, N> {
|
|||
|
||||
pub fn clear(&self) {
|
||||
unsafe {
|
||||
let _v = self.m.get().deref_mut().clear();
|
||||
self.m.get().deref_mut().clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue