diff --git a/rust-bindings/rust/src/repo.rs b/rust-bindings/rust/src/repo.rs index 279fe8f3..5ed83786 100644 --- a/rust-bindings/rust/src/repo.rs +++ b/rust-bindings/rust/src/repo.rs @@ -1,4 +1,6 @@ -use auto::{Repo, RepoListRefsExtFlags}; +use crate::auto::Repo; +#[cfg(any(feature = "v2016_4", feature = "dox"))] +use crate::auto::RepoListRefsExtFlags; use ffi; use gio; use glib; @@ -48,6 +50,7 @@ pub trait RepoExtManual { cancellable: Q, ) -> Result, Error>; + #[cfg(any(feature = "v2016_4", feature = "dox"))] fn list_refs_ext<'a, 'b, P: Into>, Q: Into>>( &self, refspec_prefix: P, @@ -110,6 +113,7 @@ impl + IsA + Clone + 'static> RepoExtManual for O { } } + #[cfg(any(feature = "v2016_4", feature = "dox"))] fn list_refs_ext<'a, 'b, P: Into>, Q: Into>>( &self, refspec_prefix: P,