mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
ab12e7c294
Since cloning Option<Arc<T>> will clone for Arc<T>, this patch fixes the follow warning: warning: this call to `as_ref.map(...)` does nothing --> vmm/src/lib.rs:872:13 | 872 | 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: Songqian Li <sionli@tencent.com>