mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
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
@ -216,7 +216,7 @@ impl VhostUserBackend for VhostUserNetBackend {
|
|||||||
let mut vring = vrings[1].write().unwrap();
|
let mut vring = vrings[1].write().unwrap();
|
||||||
if thread
|
if thread
|
||||||
.net
|
.net
|
||||||
.process_tx(&mut vring.mut_queue())
|
.process_tx(vring.mut_queue())
|
||||||
.map_err(Error::NetQueuePair)?
|
.map_err(Error::NetQueuePair)?
|
||||||
{
|
{
|
||||||
vring
|
vring
|
||||||
@ -228,7 +228,7 @@ impl VhostUserBackend for VhostUserNetBackend {
|
|||||||
let mut vring = vrings[0].write().unwrap();
|
let mut vring = vrings[0].write().unwrap();
|
||||||
if thread
|
if thread
|
||||||
.net
|
.net
|
||||||
.process_rx(&mut vring.mut_queue())
|
.process_rx(vring.mut_queue())
|
||||||
.map_err(Error::NetQueuePair)?
|
.map_err(Error::NetQueuePair)?
|
||||||
{
|
{
|
||||||
vring
|
vring
|
||||||
|
Loading…
x
Reference in New Issue
Block a user