mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Fix clippy: useless_borrows_in_formatting
Replace & in formatting arguments where it is already a reference (avoiding &&). Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -728,7 +728,7 @@ impl VirtioDevice for Net {
|
||||
|
||||
let mut epoll_threads = Vec::new();
|
||||
spawn_virtio_thread(
|
||||
&format!("{}_ctrl", &self.id),
|
||||
&format!("{}_ctrl", self.id),
|
||||
&self.seccomp_action,
|
||||
Thread::VirtioNetCtl,
|
||||
&mut epoll_threads,
|
||||
|
||||
@@ -321,7 +321,7 @@ impl VirtioDevice for Net {
|
||||
|
||||
let mut epoll_threads = Vec::new();
|
||||
spawn_virtio_thread(
|
||||
&format!("{}_ctrl", &self.id),
|
||||
&format!("{}_ctrl", self.id),
|
||||
&self.seccomp_action,
|
||||
Thread::VirtioVhostNetCtl,
|
||||
&mut epoll_threads,
|
||||
|
||||
Reference in New Issue
Block a user