cloud-hypervisor/hypervisor/src
Rob Bradford 166a005b76 hypervisor: mshv: Fix superflous lifetimes
warning: the following explicit lifetimes could be elided: 'a
   --> hypervisor/src/arch/x86/emulator/mod.rs:492:6
    |
492 | impl<'a, T: CpuStateManager> Emulator<'a, T> {
    |      ^^                               ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
    |
492 - impl<'a, T: CpuStateManager> Emulator<'a, T> {
492 + impl<T: CpuStateManager> Emulator<'_, T> {
    |

warning: the following explicit lifetimes could be elided: 'a
  --> hypervisor/src/mshv/x86_64/emulator.rs:19:6
   |
19 | impl<'a> MshvEmulatorContext<'a> {
   |      ^^                      ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
   |
19 - impl<'a> MshvEmulatorContext<'a> {
19 + impl MshvEmulatorContext<'_> {
   |

warning: the following explicit lifetimes could be elided: 'a
  --> hypervisor/src/mshv/x86_64/emulator.rs:65:6
   |
65 | impl<'a> PlatformEmulator for MshvEmulatorContext<'a> {
   |      ^^                                           ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
   |
65 - impl<'a> PlatformEmulator for MshvEmulatorContext<'a> {
65 + impl PlatformEmulator for MshvEmulatorContext<'_> {
   |

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
2024-10-21 15:28:17 +00:00
..
arch hypervisor: mshv: Fix superflous lifetimes 2024-10-21 15:28:17 +00:00
kvm misc: Eliminate use of assert!((...).is_ok()) 2024-10-03 12:03:49 +00:00
mshv hypervisor: mshv: Fix superflous lifetimes 2024-10-21 15:28:17 +00:00
cpu.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
device.rs hypervisor, vmm: use new vfio-ioctls 2022-07-21 23:37:53 +01:00
hypervisor.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
lib.rs misc: Replace div_round_up operation with div_ceil 2024-10-18 17:46:39 +00:00
vm.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00