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:
Rob Bradford
2026-05-27 12:27:00 +01:00
committed by Bo Chen
parent c10f237529
commit c93677c426
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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,