From 66e1173d6dba78d190f28ce3f2366bbe3585bc02 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Fri, 21 Jul 2023 09:56:25 +0200 Subject: [PATCH] rng: fix clippy warning `timer` variable does not need to be mutable as clippy reported: warning: variable does not need to be mutable --> crates/rng/src/vhu_rng.rs:127:17 | 127 | let mut timer = &mut self.timer; Signed-off-by: Stefano Garzarella --- crates/rng/src/vhu_rng.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rng/src/vhu_rng.rs b/crates/rng/src/vhu_rng.rs index d51755e..66ba24e 100644 --- a/crates/rng/src/vhu_rng.rs +++ b/crates/rng/src/vhu_rng.rs @@ -124,7 +124,7 @@ impl VuRngBackend { let descriptor = descriptors[0]; let mut to_read = descriptor.len() as usize; - let mut timer = &mut self.timer; + let timer = &mut self.timer; if !descriptor.is_write_only() { return Err(VuRngError::UnexpectedReadDescriptor);