mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
80e48b545d
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do. --> block_util/src/lib.rs:68:31 | 68 | fn build_device_id(disk_path: &PathBuf) -> result::Result<String, Error> { | ^^^^^^^^ help: change this to: `&Path` | = note: `-D clippy::ptr-arg` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do. --> block_util/src/lib.rs:83:39 | 83 | pub fn build_disk_image_id(disk_path: &PathBuf) -> Vec<u8> { | ^^^^^^^^ help: change this to: `&Path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do. --> block_util/src/lib.rs:68:31 | 68 | fn build_device_id(disk_path: &PathBuf) -> result::Result<String, Error> { | ^^^^^^^^ help: change this to: `&Path` | = note: `-D clippy::ptr-arg` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do. --> block_util/src/lib.rs:83:39 | 83 | pub fn build_disk_image_id(disk_path: &PathBuf) -> Vec<u8> { | ^^^^^^^^ help: change this to: `&Path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |