diff --git a/pci/src/vfio.rs b/pci/src/vfio.rs index e358f9457..e9d768a9a 100644 --- a/pci/src/vfio.rs +++ b/pci/src/vfio.rs @@ -1552,7 +1552,7 @@ impl VfioPciDevice { /// # Arguments /// /// * `vm` - The VM object. It is used to set the VFIO MMIO regions - /// as user memory regions. + /// as user memory regions. /// * `mem_slot` - The closure to return a memory slot. pub fn map_mmio_regions(&mut self) -> Result<(), VfioPciError> { let fd = self.device.as_raw_fd(); diff --git a/virtio-devices/src/vsock/csm/connection.rs b/virtio-devices/src/vsock/csm/connection.rs index 59c161da8..50f3c3034 100644 --- a/virtio-devices/src/vsock/csm/connection.rs +++ b/virtio-devices/src/vsock/csm/connection.rs @@ -146,9 +146,9 @@ where /// Returns: /// - `Ok(())`: the packet has been successfully filled in and is ready for delivery; /// - `Err(VsockError::NoData)`: there was no data available with which to fill in the - /// packet; + /// packet; /// - `Err(VsockError::PktBufMissing)`: the packet would've been filled in with data, but - /// it is missing the data buffer. + /// it is missing the data buffer. /// fn recv_pkt(&mut self, pkt: &mut VsockPacket) -> VsockResult<()> { // Perform some generic initialization that is the same for any packet operation (e.g. diff --git a/vm-migration/src/lib.rs b/vm-migration/src/lib.rs index b32dc9bb9..b22bc1c0b 100644 --- a/vm-migration/src/lib.rs +++ b/vm-migration/src/lib.rs @@ -191,7 +191,7 @@ pub trait Transportable: Pausable + Snapshottable { /// /// * `snapshot` - The migratable component snapshot to send. /// * `destination_url` - The destination URL to send the snapshot to. This - /// could be an HTTP endpoint, a TCP address or a local file. + /// could be an HTTP endpoint, a TCP address or a local file. fn send( &self, _snapshot: &Snapshot, @@ -205,7 +205,7 @@ pub trait Transportable: Pausable + Snapshottable { /// # Arguments /// /// * `source_url` - The source URL to fetch the snapshot from. This could be an HTTP - /// endpoint, a TCP address or a local file. + /// endpoint, a TCP address or a local file. fn recv(&self, _source_url: &str) -> std::result::Result { Ok(Snapshot::default()) }