Skip to content

Commit

Permalink
fix(virtio-net): clippy::get_first
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
  • Loading branch information
mkroening committed Nov 2, 2023
1 parent e0add3d commit a6abd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/virtio_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl TxQueues {
self.vqs.push(Rc::new(vq));
if self.vqs.len() == 1 {
// Unwrapping is safe, as one virtq will be definitely in the vector.
let vq = self.vqs.get(0).unwrap();
let vq = self.vqs.first().unwrap();

if dev_cfg
.features
Expand Down

0 comments on commit a6abd5a

Please sign in to comment.