runtime-rs: remove unneeded 'mut' keywords

These unneeded 'mut' keywords blocks built by rust 1.71.0. Remove them.

Fixes: #7424
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu 2023-07-20 09:41:36 +00:00
parent e1a4040a6c
commit 2c8f83424d
3 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ impl InitialSizeManager {
pub fn setup_config(&self, config: &mut TomlConfig) -> Result<()> {
// update this data to the hypervisor config for later use by hypervisor
let hypervisor_name = &config.runtime.hypervisor_name;
let mut hv = config
let hv = config
.hypervisor
.get_mut(hypervisor_name)
.context("failed to get hypervisor config")?;

View File

@ -73,7 +73,7 @@ impl SPDKVolume {
}
}
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()),
..Default::default()

View File

@ -95,7 +95,7 @@ impl Container {
amend_spec(&mut spec, toml_config.runtime.disable_guest_seccomp).context("amend spec")?;
// get mutable root from oci spec
let mut root = match spec.root.as_mut() {
let root = match spec.root.as_mut() {
Some(root) => root,
None => return Err(anyhow!("spec miss root field")),
};