mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +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> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |