We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 710701c + a316f79 commit af35029Copy full SHA for af35029
src/reference.rs
@@ -16,7 +16,13 @@ use crate::{
16
// internally
17
const GIT_REFNAME_MAX: usize = 1024;
18
19
-struct Refdb<'repo>(&'repo Repository);
+/// 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);
26
27
/// A structure to represent a git [reference][1].
28
///
0 commit comments