From 99f3d69e948669033a7eddfc005f56e34e429cff Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Mon, 11 Sep 2023 17:38:47 +0100 Subject: [PATCH] runtime-rs: Remove mut Fix `error: variable does not need to be mutable` Fixes: #7902 Signed-off-by: stevenhorsman --- src/runtime-rs/crates/resource/src/volume/spdk_volume.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime-rs/crates/resource/src/volume/spdk_volume.rs b/src/runtime-rs/crates/resource/src/volume/spdk_volume.rs index f0ea125da7..85bd645a9f 100644 --- a/src/runtime-rs/crates/resource/src/volume/spdk_volume.rs +++ b/src/runtime-rs/crates/resource/src/volume/spdk_volume.rs @@ -75,7 +75,7 @@ impl SPDKVolume { let block_driver = get_block_driver(d).await; - let mut vhu_blk_config = &mut VhostUserConfig { + let vhu_blk_config = &mut VhostUserConfig { socket_path: device, device_type: VhostUserType::Blk("vhost-user-blk-pci".to_owned()), driver_option: block_driver,