Use failure instead of error chain

This commit is contained in:
Roey Darwish Dror
2018-06-04 22:33:39 +03:00
parent 32eb9d96c6
commit 2def00501b
4 changed files with 20 additions and 39 deletions

View File

@@ -1,4 +1,4 @@
use super::error::*;
use failure::Error;
use std::path::{Path, PathBuf};
use std::process::Command;
use which::which;
@@ -38,7 +38,7 @@ impl Git {
None
}
pub fn pull<P: AsRef<Path>>(&self, path: P) -> Result<()> {
pub fn pull<P: AsRef<Path>>(&self, path: P) -> Result<(), Error> {
if let Some(git) = &self.git {
if let Ok(mut command) = Command::new(&git)
.arg("pull")