We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f6364b + 85449f1 commit 9fbec03Copy full SHA for 9fbec03
src/branch.rs
@@ -73,7 +73,7 @@ impl<'repo> Branch<'repo> {
73
74
/// Return the reference supporting the remote tracking branch, given a
75
/// local branch reference.
76
- pub fn upstream<'a>(&'a self) -> Result<Branch<'a>, Error> {
+ pub fn upstream(&self) -> Result<Branch<'repo>, Error> {
77
let mut ret = ptr::null_mut();
78
unsafe {
79
try_call!(raw::git_branch_upstream(&mut ret, &*self.get().raw()));
0 commit comments