chore(third_party/sources): Update

- Apply new clippy lints

Change-Id: I4beb7c0b4d92a2cdcfcb6fa89d24cade2379a5b7
Reviewed-on: https://cl.snix.dev/c/snix/+/30121
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
This commit is contained in:
Ilan Joselevich 2025-03-18 21:28:05 +00:00 committed by clbot
parent 426ad05c99
commit dd1ba855e2
5 changed files with 24 additions and 29 deletions

View file

@ -146,9 +146,9 @@ where
}
fn features(&self) -> u64 {
1 << VIRTIO_F_VERSION_1
| 1 << VIRTIO_RING_F_INDIRECT_DESC
| 1 << VIRTIO_RING_F_EVENT_IDX
(1 << VIRTIO_F_VERSION_1)
| (1 << VIRTIO_RING_F_INDIRECT_DESC)
| (1 << VIRTIO_RING_F_EVENT_IDX)
| VhostUserVirtioFeatures::PROTOCOL_FEATURES.bits()
}

View file

@ -184,7 +184,7 @@ pub struct CoercionKind {
impl From<CoercionKind> for u8 {
fn from(k: CoercionKind) -> u8 {
k.strong as u8 | (k.import_paths as u8) << 1
k.strong as u8 | ((k.import_paths as u8) << 1)
}
}

View file

@ -893,7 +893,7 @@ where
self(b, a) => {
match b {
Value::Integer(0) => return frame.error(self, ErrorKind::DivisionByZero),
Value::Float(b) if b == 0.0_f64 => {
Value::Float(0.0_f64) => {
return frame.error(self, ErrorKind::DivisionByZero)
}
_ => {}

View file

@ -16,12 +16,7 @@ impl Context {
}
pub fn syn_error(&self, error: syn::Error) {
self.errors
.borrow_mut()
.as_mut()
.take()
.unwrap()
.push(error);
self.errors.borrow_mut().as_mut().unwrap().push(error);
}
pub fn error_spanned<T: ToTokens, D: fmt::Display>(&self, tokens: T, message: D) {