Skip to content

Commit 9fbec03

Browse files
authored
Merge pull request #400 from emlun/relax-branch-upstream-self-borrow-lifetime
Relax self-borrow lifetime in Branch.upstream()
2 parents 3f6364b + 85449f1 commit 9fbec03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/branch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<'repo> Branch<'repo> {
7373

7474
/// Return the reference supporting the remote tracking branch, given a
7575
/// local branch reference.
76-
pub fn upstream<'a>(&'a self) -> Result<Branch<'a>, Error> {
76+
pub fn upstream(&self) -> Result<Branch<'repo>, Error> {
7777
let mut ret = ptr::null_mut();
7878
unsafe {
7979
try_call!(raw::git_branch_upstream(&mut ret, &*self.get().raw()));

0 commit comments

Comments
 (0)