Run cargo fmt

This commit is contained in:
2022-05-10 18:26:06 +02:00
parent e940ab69fb
commit c3c1c98913
2 changed files with 1 additions and 4 deletions

View File

@@ -474,7 +474,6 @@ pub fn add_worktree(
let config = repo::read_worktree_root_config(directory)?;
if repo.find_worktree(name).is_ok() {
return Err(format!("Worktree {} already exists", &name));
}

View File

@@ -673,9 +673,7 @@ impl Repo {
}
pub fn find_worktree(&self, name: &str) -> Result<(), String> {
self.0
.find_worktree(name)
.map_err(convert_libgit2_error)?;
self.0.find_worktree(name).map_err(convert_libgit2_error)?;
Ok(())
}