mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
vmm: Directly clone console resize pipe
Beta clippy fix: warning: this call to `as_ref.map(...)` does nothing --> vmm/src/device_manager.rs🔢9 | 1234 | self.console_resize_pipe.as_ref().map(Arc::clone) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.console_resize_pipe.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref = note: `#[warn(clippy::useless_asref)]` on by default Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
d516374c39
commit
e70bf59809
@ -1231,7 +1231,7 @@ impl DeviceManager {
|
||||
}
|
||||
|
||||
pub fn console_resize_pipe(&self) -> Option<Arc<File>> {
|
||||
self.console_resize_pipe.as_ref().map(Arc::clone)
|
||||
self.console_resize_pipe.clone()
|
||||
}
|
||||
|
||||
pub fn create_devices(
|
||||
|
Loading…
Reference in New Issue
Block a user