cloud-hypervisor/pci/src
Rob Bradford 221c1f1bdc pci: Fix clippy (return_self_not_must_use) issue
warning: missing `#[must_use]` attribute on a method returning `Self`
   --> pci/src/configuration.rs:925:5
    |
925 | /     pub fn set_register_index(mut self, reg_idx: usize) -> Self {
926 | |         self.reg_idx = reg_idx;
927 | |         self
928 | |     }
    | |_____^
    |
    = note: `#[warn(clippy::return_self_not_must_use)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use

warning: missing `#[must_use]` attribute on a method returning `Self`
   --> pci/src/configuration.rs:930:5
    |
930 | /     pub fn set_address(mut self, addr: u64) -> Self {
931 | |         self.addr = addr;
932 | |         self
933 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use

warning: missing `#[must_use]` attribute on a method returning `Self`
   --> pci/src/configuration.rs:935:5
    |
935 | /     pub fn set_size(mut self, size: u64) -> Self {
936 | |         self.size = size;
937 | |         self
938 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use

warning: missing `#[must_use]` attribute on a method returning `Self`
   --> pci/src/configuration.rs:944:5
    |
944 | /     pub fn set_region_type(mut self, region_type: PciBarRegionType) -> Self {
945 | |         self.region_type = region_type;
946 | |         self
947 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2022-01-07 08:16:26 -08:00
..
bus.rs vmm: Use PciBdf throughout in order to remove manual bit manipulation 2021-11-02 16:55:42 +00:00
configuration.rs pci: Fix clippy (return_self_not_must_use) issue 2022-01-07 08:16:26 -08:00
device.rs vmm, pci: Fix potential deadlock in PCI BAR allocation 2022-01-06 09:59:36 +01:00
lib.rs pci: Introduce PciBdf struct with accessors 2021-11-02 16:55:42 +00:00
msi.rs clippy: Fix redundant allocations 2021-07-29 13:28:57 +02:00
msix.rs pci: slightly change safety comment style 2021-11-17 14:40:51 +00:00
vfio_user.rs vmm, pci: Fix potential deadlock in PCI BAR allocation 2022-01-06 09:59:36 +01:00
vfio.rs vmm, pci: Fix potential deadlock in PCI BAR allocation 2022-01-06 09:59:36 +01:00