Update clippy to check all features (#441)

* Update clippy to check all features

* Fix tests

* oops
This commit is contained in:
JT
2021-12-06 07:23:43 +13:00
committed by GitHub
parent 9548e5ef5b
commit fdde95f675
13 changed files with 33 additions and 17 deletions

View File

@ -242,6 +242,7 @@ fn rm_helper(call: &Call, args: RmArgs) -> Vec<Value> {
use std::io::Error;
result = if trash {
trash::delete(&f).map_err(|e: trash::Error| {
use std::io::ErrorKind;
Error::new(ErrorKind::Other, format!("{:?}", e))
})
} else if metadata.is_file() {