Skip to content

Commit

Permalink
clippy: Ignore false positive redudant clone
Browse files Browse the repository at this point in the history
tracking issue: rust-lang/rust-clippy#5595

Signed-off-by: Jonathas-Conceicao <jonathas.conceicao@ossystems.com.br>
  • Loading branch information
Jonathas-Conceicao authored and otavio committed Jun 16, 2020
1 parent ec00434 commit 4fd69da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions updatehub/src/object/installer/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ mod tests {
obj.install(&download_dir.path())?;

// Validade File
#[allow(clippy::redundant_clone)]
utils::fs::mount_map(&device, obj.filesystem, &obj.mount_options.clone(), |path| {
let chunk_size = definitions::ChunkSize::default().0;
let dest = path.join(&obj.target_path);
Expand Down
1 change: 1 addition & 0 deletions updatehub/src/object/installer/tarball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ mod tests {
obj.install(&PathBuf::from("test/fixtures"))?;

// Validade File
#[allow(clippy::redundant_clone)]
utils::fs::mount_map(&device, obj.filesystem, &obj.mount_options.clone(), |path| {
let assert_metadata = |p: &Path| -> crate::utils::Result<()> {
let metadata = p.metadata()?;
Expand Down

0 comments on commit 4fd69da

Please sign in to comment.