mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Fix various warnings from clippy 0.1.82
An example warning output is:
error: first doc comment paragraph is too long
--> virtio-devices/src/lib.rs:158:1
|
158 | / /// Convert an absolute address into an address space (GuestMemory)
159 | | /// to a host pointer and verify that the provided size define a valid
160 | | /// range within a single memory region.
161 | | /// Return None if it is out of bounds or if addr+size overlaps a single region.
| |_
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
= note: `-D clippy::too-long-first-doc-paragraph` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::too_long_first_doc_paragraph)]`
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
@@ -180,8 +180,10 @@ impl PciSubclass for PciNetworkControllerSubclass {
|
||||
}
|
||||
}
|
||||
|
||||
/// A PCI class programming interface. Each combination of `PciClassCode` and
|
||||
/// `PciSubclass` can specify a set of register-level programming interfaces.
|
||||
/// Trait to define a PCI class programming interface
|
||||
///
|
||||
/// Each combination of `PciClassCode` and `PciSubclass` can specify a
|
||||
/// set of register-level programming interfaces.
|
||||
/// This trait is implemented by each programming interface.
|
||||
/// It allows use of a trait object to generate configurations.
|
||||
pub trait PciProgrammingInterface {
|
||||
@@ -418,6 +420,7 @@ pub struct PciConfigurationState {
|
||||
}
|
||||
|
||||
/// Contains the configuration space of a PCI node.
|
||||
///
|
||||
/// See the [specification](https://en.wikipedia.org/wiki/PCI_configuration_space).
|
||||
/// The configuration space is accessed with DWORD reads and writes from the guest.
|
||||
pub struct PciConfiguration {
|
||||
|
||||
Reference in New Issue
Block a user