Bump dependencies

This commit is contained in:
Roey Darwish Dror
2020-06-18 22:25:27 +03:00
parent 9a3b7e30ee
commit 63ae33c841
3 changed files with 194 additions and 209 deletions

View File

@@ -73,8 +73,8 @@ pub fn which<T: AsRef<OsStr> + Debug>(binary_name: T) -> Option<PathBuf> {
Some(path)
}
Err(e) => {
match e.kind() {
which_crate::ErrorKind::CannotFindBinaryPath => {
match e {
which_crate::Error::CannotFindBinaryPath => {
debug!("Cannot find {:?}", &binary_name);
}
_ => {
@@ -102,8 +102,8 @@ pub fn require<T: AsRef<OsStr> + Debug>(binary_name: T) -> Result<PathBuf> {
debug!("Detected {:?} as {:?}", &path, &binary_name);
Ok(path)
}
Err(e) => match e.kind() {
which_crate::ErrorKind::CannotFindBinaryPath => {
Err(e) => match e {
which_crate::Error::CannotFindBinaryPath => {
debug!("Cannot find {:?}", &binary_name);
Err(SkipStep.into())
}