summaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorNick Gerace <nickagerace@gmail.com>2021-08-02 00:59:02 -0400
committerNick Gerace <nickagerace@gmail.com>2021-08-02 01:04:28 -0400
commit3d51da0a76de7b2e15926becca86fe45f088cbbe (patch)
tree0854040c7847fea40073773d7359f620fb9c0c12 /src/util.rs
parent5c8fdcc18081a2d85ac6f845835fb3c1888fc043 (diff)
downloadgfold-3d51da0a76de7b2e15926becca86fe45f088cbbe.zip
Bump packages
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs
index de4dcc9..5ff96da 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -116,7 +116,7 @@ pub fn create_table_from_paths(
}
// FIXME: this function may not currently work because "clean", non-main branches can be considered "unpushed".
-fn is_unpushed(repo: &git2::Repository, head: &git2::Reference) -> bool {
+fn is_unpushed(repo: &git2::Repository, head: &git2::Reference<'_>) -> bool {
let local = match head.peel_to_commit() {
Ok(local) => local,
Err(_) => return false,