cloud-hypervisor/block_util/src
Rob Bradford 80e48b545d block_util: Address Rust 1.51.0 clippy issue (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

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>
2021-03-26 11:32:09 +00:00
..
async_io.rs block_util: Add new traits for handling disk files asynchronously 2021-01-22 16:10:34 +00:00
fixed_vhd_async.rs block_util, vmm: Add fixed VHD asynchronous implementation 2021-02-01 13:45:08 +00:00
fixed_vhd_sync.rs block_util: Add synchronous support for fixed VHD disk files 2021-02-01 13:45:08 +00:00
lib.rs block_util: Address Rust 1.51.0 clippy issue (ptr-arg) 2021-03-26 11:32:09 +00:00
qcow_sync.rs block_util: Factorize common code for synchronous implementations 2021-01-22 16:10:34 +00:00
raw_async.rs deps: bump io-uring from 0.4.0 to 0.5.0 2021-03-01 11:08:25 +00:00
raw_sync.rs block_util: Simplify RAW synchronous implementation 2021-02-01 13:45:08 +00:00
vhd.rs block_util: Use vmm_sys_util::tempfile::Tempfile 2021-02-22 14:29:53 +01:00