From d0cfe7f0e73e0bb69222bdc4bb5d279913043c3f Mon Sep 17 00:00:00 2001 From: hky1999 <976929993@qq.com> Date: Tue, 26 Sep 2023 17:25:14 +0800 Subject: [PATCH] fix: cargo fmt --- src/device/net/dev.rs | 4 ++-- src/device/net/dev_raw.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device/net/dev.rs b/src/device/net/dev.rs index 388660ed..6c48ecae 100644 --- a/src/device/net/dev.rs +++ b/src/device/net/dev.rs @@ -9,9 +9,9 @@ use crate::{hal::Hal, transport::Transport, Error, Result}; /// Unlike [`VirtIONetRaw`], it uses [`NetBuffer`]s for transmission and /// reception rather than the raw slices. On initialization, it pre-allocates /// all receive buffers and puts them all in the receive queue. -/// +/// /// The virtio network device is a virtual ethernet card. -/// +/// /// It has enhanced rapidly and demonstrates clearly how support for new /// features are added to an existing device. /// Empty buffers are placed in one virtqueue for receiving packets, and diff --git a/src/device/net/dev_raw.rs b/src/device/net/dev_raw.rs index 9852ad40..fbcb63a3 100644 --- a/src/device/net/dev_raw.rs +++ b/src/device/net/dev_raw.rs @@ -53,7 +53,7 @@ impl VirtIONetRaw