Skip to content

Commit af35029

Browse files
authored
Merge pull request #1008 from tamird/fix-build
Appease latest rustc nightly
2 parents 710701c + a316f79 commit af35029

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/reference.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ use crate::{
1616
// internally
1717
const GIT_REFNAME_MAX: usize = 1024;
1818

19-
struct Refdb<'repo>(&'repo Repository);
19+
/// This is used to logically indicate that a [`raw::git_reference`] or
20+
/// [`raw::git_reference_iterator`] holds a reference to [`raw::git_refdb`].
21+
/// It is not necessary to have a wrapper like this in the
22+
/// [`marker::PhantomData`], since all that matters is that it is tied to the
23+
/// lifetime of the [`Repository`], but this helps distinguish the actual
24+
/// references involved.
25+
struct Refdb<'repo>(#[allow(dead_code)] &'repo Repository);
2026

2127
/// A structure to represent a git [reference][1].
2228
///

0 commit comments

Comments
 (0)