mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-01 04:11:20 +00:00
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:
parent
9f5a3a3147
commit
66e1173d6d
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user