misc: Update for beta clippy failures on x86-64

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2023-05-30 10:58:05 +01:00
committed by Bo Chen
parent 5ac68534b1
commit 89e658d9ff
7 changed files with 7 additions and 16 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 {