summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Macovei <alexnmaco@gmail.com>2020-10-07 09:09:14 +0300
committerAlexandru Macovei <alexnmaco@gmail.com>2020-10-07 09:09:16 +0300
commit9a1983982a3e0ac012231e34d5688cfd76b2aaa5 (patch)
treebe08163d54d2baf403795b468def5a8ffdb7fb6b
parentd2310dd884a80732c345baee0d6eb36b94370e47 (diff)
propagate results from revwalk operations
Warnings about unused results popped up after the upgrade to git2 v0.13
-rw-r--r--src/stack.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stack.rs b/src/stack.rs
index 47d375d..d01bc42 100644
--- a/src/stack.rs
+++ b/src/stack.rs
@@ -31,9 +31,9 @@ pub fn working_stack<'repo>(
}
let mut revwalk = repo.revwalk()?;
- revwalk.set_sorting(git2::Sort::TOPOLOGICAL);
+ revwalk.set_sorting(git2::Sort::TOPOLOGICAL)?;
revwalk.push_head()?;
- revwalk.simplify_first_parent();
+ revwalk.simplify_first_parent()?;
debug!(logger, "head pushed"; "head" => head.name());
let base_commit = match user_provided_base {