Skip to content

Commit

Permalink
fix some clippy warnings (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Lauzier committed Aug 18, 2021
1 parent 600b59c commit 3c566ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/freedesktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ mod tests {
I: IntoIterator<Item = T>,
T: AsRef<Path>,
{
let full_paths = canonicalize_paths(paths).map_err(|e| SystemTrashError::Other(e))?;
let full_paths = canonicalize_paths(paths).map_err(SystemTrashError::Other)?;
delete_all_canonicalized_using_system_program(full_paths)
}

Expand Down
3 changes: 1 addition & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::fs::{create_dir, File};
use std::path::PathBuf;
use std::sync::atomic::{AtomicI64, Ordering};

use chrono;
use log::trace;
use once_cell::sync::Lazy;

Expand Down Expand Up @@ -45,7 +44,7 @@ fn test_delete_folder() {

assert!(path.exists());
delete(&path).unwrap();
assert!(path.exists() == false);
assert!(!path.exists());

trace!("Finished test_delete_folder");
}
Expand Down

0 comments on commit 3c566ef

Please sign in to comment.