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 <sgarzare@redhat.com>
This commit is contained in:
Stefano Garzarella 2023-07-21 09:56:25 +02:00 committed by Viresh Kumar
parent 9f5a3a3147
commit 66e1173d6d

View File

@ -124,7 +124,7 @@ impl<T: Read> VuRngBackend<T> {
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);