misc: Address clippy beta issues

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2023-06-30 13:51:41 -07:00
committed by Bo Chen
parent 064c1e2c8b
commit 3a63143f33
8 changed files with 9 additions and 18 deletions

View File

@@ -605,7 +605,7 @@ impl VirtioDevice for Fs {
&mut self,
shm_regions: VirtioSharedMemoryList,
) -> std::result::Result<(), crate::Error> {
if let Some(mut cache) = self.cache.as_mut() {
if let Some(cache) = self.cache.as_mut() {
cache.0 = shm_regions;
Ok(())
} else {