Replies: 1 comment 1 reply
-
Writing a function like you want it probably doesn't make much sense, but for completeness, here it is: fn head(repo: &gix::Repository) -> Result<gix::Head<'_>, Box<dyn Error>> {
Ok(r.head()?)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a newb question. I have been trying to write a function that would return my repositories'
HEAD
(gix::Head
) . I can't figure out how to deal with the borrow checker though as it is returning the following errorHere is the function :
Can someone please tell me how I can address this problem ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions