diff --git a/alioth/src/board/x86_64.rs b/alioth/src/board/x86_64.rs index bf8c164..062a4fe 100644 --- a/alioth/src/board/x86_64.rs +++ b/alioth/src/board/x86_64.rs @@ -497,7 +497,6 @@ pub const SEV_DESC_TYPE_CPUID: u32 = 3; #[derive(Debug, FromBytes, IntoBytes, Immutable)] #[repr(C)] - struct SevMetadataDesc { base: u32, len: u32, diff --git a/alioth/src/device/fw_cfg/fw_cfg.rs b/alioth/src/device/fw_cfg/fw_cfg.rs index 494dc4e..5e93470 100644 --- a/alioth/src/device/fw_cfg/fw_cfg.rs +++ b/alioth/src/device/fw_cfg/fw_cfg.rs @@ -109,7 +109,7 @@ struct FwCfgContentAccess<'a> { offset: u32, } -impl<'a> Read for FwCfgContentAccess<'a> { +impl Read for FwCfgContentAccess<'_> { fn read(&mut self, buf: &mut [u8]) -> Result { match self.content { FwCfgContent::File(offset, f) => { diff --git a/alioth/src/virtio/queue/split.rs b/alioth/src/virtio/queue/split.rs index 6764073..a7e6dd8 100644 --- a/alioth/src/virtio/queue/split.rs +++ b/alioth/src/virtio/queue/split.rs @@ -98,7 +98,7 @@ pub struct SplitQueue<'q, 'm> { type DescIov = (Vec<(u64, u64)>, Vec<(u64, u64)>); -impl<'q, 'm> SplitQueue<'q, 'm> { +impl<'m> SplitQueue<'_, 'm> { pub fn avail_index(&self) -> u16 { unsafe { &*self.avail_hdr }.idx } @@ -245,7 +245,7 @@ impl<'q, 'm> SplitQueue<'q, 'm> { } } -impl<'q, 'm> VirtQueue<'m> for SplitQueue<'q, 'm> { +impl<'m> VirtQueue<'m> for SplitQueue<'_, 'm> { fn reg(&self) -> &Queue { self.reg } diff --git a/alioth/src/virtio/worker/io_uring.rs b/alioth/src/virtio/worker/io_uring.rs index 7fa786f..856d508 100644 --- a/alioth/src/virtio/worker/io_uring.rs +++ b/alioth/src/virtio/worker/io_uring.rs @@ -207,7 +207,7 @@ where Ok(()) } -impl<'a, 'm, Q, S> ActiveIoUring<'a, 'm, Q, S> +impl<'m, Q, S> ActiveIoUring<'_, 'm, Q, S> where Q: VirtQueue<'m>, S: IrqSender, @@ -263,7 +263,7 @@ where } } -impl<'a, 'm, Q, S, D> ActiveBackend for ActiveIoUring<'a, 'm, Q, S> +impl<'m, Q, S, D> ActiveBackend for ActiveIoUring<'_, 'm, Q, S> where D: VirtioIoUring, Q: VirtQueue<'m>, diff --git a/alioth/src/virtio/worker/mio.rs b/alioth/src/virtio/worker/mio.rs index baf687b..0d49e05 100644 --- a/alioth/src/virtio/worker/mio.rs +++ b/alioth/src/virtio/worker/mio.rs @@ -170,7 +170,7 @@ pub struct ActiveMio<'a, 'm, Q, S> { pub mem: &'m Ram, } -impl<'a, 'm, Q, S, D> ActiveBackend for ActiveMio<'a, 'm, Q, S> +impl<'m, Q, S, D> ActiveBackend for ActiveMio<'_, 'm, Q, S> where D: VirtioMio, Q: VirtQueue<'m>, diff --git a/serde-aco/src/de.rs b/serde-aco/src/de.rs index 3892d1e..7d62120 100644 --- a/serde-aco/src/de.rs +++ b/serde-aco/src/de.rs @@ -27,7 +27,7 @@ pub struct Deserializer<'s, 'o> { key: &'s str, } -impl<'s, 'o, 'a> de::Deserializer<'s> for &'a mut Deserializer<'s, 'o> { +impl<'s> de::Deserializer<'s> for &mut Deserializer<'s, '_> { type Error = Error; fn deserialize_any(self, _visitor: V) -> Result @@ -431,7 +431,7 @@ impl<'a, 's, 'o> CommaSeparated<'a, 's, 'o> { } } -impl<'a, 's, 'o> SeqAccess<'s> for CommaSeparated<'a, 's, 'o> { +impl<'s> SeqAccess<'s> for CommaSeparated<'_, 's, '_> { type Error = Error; fn next_element_seed(&mut self, seed: T) -> Result> where @@ -444,7 +444,7 @@ impl<'a, 's, 'o> SeqAccess<'s> for CommaSeparated<'a, 's, 'o> { } } -impl<'a, 's, 'o> MapAccess<'s> for CommaSeparated<'a, 's, 'o> { +impl<'s> MapAccess<'s> for CommaSeparated<'_, 's, '_> { type Error = Error; fn next_key_seed(&mut self, seed: K) -> Result> @@ -487,7 +487,7 @@ impl<'a, 's, 'o> Enum<'a, 's, 'o> { } } -impl<'a, 's, 'o> EnumAccess<'s> for Enum<'a, 's, 'o> { +impl<'s> EnumAccess<'s> for Enum<'_, 's, '_> { type Error = Error; type Variant = Self; @@ -500,7 +500,7 @@ impl<'a, 's, 'o> EnumAccess<'s> for Enum<'a, 's, 'o> { } } -impl<'a, 's, 'o> VariantAccess<'s> for Enum<'a, 's, 'o> { +impl<'s> VariantAccess<'s> for Enum<'_, 's, '_> { type Error = Error; fn unit_variant(self) -> Result<()> {