vhost_user_net: Remove some unneeded use of mut
As identified by the new beta clippy. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
00bfb63607
commit
a3a0d26959
1 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ impl VhostUserBackend for VhostUserNetBackend {
|
|||
let mut vring = vrings[1].write().unwrap();
|
||||
if thread
|
||||
.net
|
||||
.process_tx(&mut vring.mut_queue())
|
||||
.process_tx(vring.mut_queue())
|
||||
.map_err(Error::NetQueuePair)?
|
||||
{
|
||||
vring
|
||||
|
|
@ -228,7 +228,7 @@ impl VhostUserBackend for VhostUserNetBackend {
|
|||
let mut vring = vrings[0].write().unwrap();
|
||||
if thread
|
||||
.net
|
||||
.process_rx(&mut vring.mut_queue())
|
||||
.process_rx(vring.mut_queue())
|
||||
.map_err(Error::NetQueuePair)?
|
||||
{
|
||||
vring
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue