From 13c61a9329eac0d94a7ce0ae69be43002605a90f Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Sat, 18 May 2019 13:56:58 +0200 Subject: [PATCH] Fix features in Repo --- rust-bindings/rust/src/repo.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,