Skip to content

Commit

Permalink
fix: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Nov 12, 2023
1 parent 80f13fc commit d0cfe7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/device/net/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/device/net/dev_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl<H: Hal, T: Transport, const QUEUE_SIZE: usize> VirtIONetRaw<H, T, QUEUE_SIZ
false,
negotiated_features.contains(Features::RING_EVENT_IDX),
)?;

transport.finish_init();

Ok(VirtIONetRaw {
Expand Down

0 comments on commit d0cfe7f

Please sign in to comment.