Skip to content

Commit 85449f1

Browse files
committed
Make Branch.upstream return 'repo instead of arbitrary lifetime
1 parent f4b5516 commit 85449f1

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>(&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)