misc: Fix clippy - doc list item overindented

Reported by 1.86.0-beta.1 (f0cb41030 2025-02-17).

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He
2025-02-19 15:56:38 +08:00
committed by Bo Chen
parent 5cb5115456
commit c441bb2968
3 changed files with 5 additions and 5 deletions

View File

@@ -1552,7 +1552,7 @@ impl VfioPciDevice {
/// # Arguments /// # Arguments
/// ///
/// * `vm` - The VM object. It is used to set the VFIO MMIO regions /// * `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. /// * `mem_slot` - The closure to return a memory slot.
pub fn map_mmio_regions(&mut self) -> Result<(), VfioPciError> { pub fn map_mmio_regions(&mut self) -> Result<(), VfioPciError> {
let fd = self.device.as_raw_fd(); let fd = self.device.as_raw_fd();

View File

@@ -146,9 +146,9 @@ where
/// Returns: /// Returns:
/// - `Ok(())`: the packet has been successfully filled in and is ready for delivery; /// - `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 /// - `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 /// - `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<()> { fn recv_pkt(&mut self, pkt: &mut VsockPacket) -> VsockResult<()> {
// Perform some generic initialization that is the same for any packet operation (e.g. // Perform some generic initialization that is the same for any packet operation (e.g.

View File

@@ -191,7 +191,7 @@ pub trait Transportable: Pausable + Snapshottable {
/// ///
/// * `snapshot` - The migratable component snapshot to send. /// * `snapshot` - The migratable component snapshot to send.
/// * `destination_url` - The destination URL to send the snapshot to. This /// * `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( fn send(
&self, &self,
_snapshot: &Snapshot, _snapshot: &Snapshot,
@@ -205,7 +205,7 @@ pub trait Transportable: Pausable + Snapshottable {
/// # Arguments /// # Arguments
/// ///
/// * `source_url` - The source URL to fetch the snapshot from. This could be an HTTP /// * `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<Snapshot, MigratableError> { fn recv(&self, _source_url: &str) -> std::result::Result<Snapshot, MigratableError> {
Ok(Snapshot::default()) Ok(Snapshot::default())
} }