Skip to content

Commit 6c4dbee

Browse files
committed
Remove field if feature not enabled
1 parent c670485 commit 6c4dbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix/src/clone/fetch/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub enum Error {
3737
},
3838
#[error("Failed to update HEAD with values from remote")]
3939
HeadUpdate(#[from] crate::reference::edit::Error),
40+
#[cfg(feature = "revision")]
4041
#[error("Failed to parse revision")]
4142
RefParseError(#[from] crate::revision::spec::parse::single::Error),
4243
#[error("The remote didn't have any ref that matched '{}'", wanted.as_ref().as_bstr())]
@@ -230,7 +231,6 @@ impl PrepareFetch {
230231
P: crate::NestedProgress,
231232
P::SubProgress: 'static,
232233
{
233-
234234
let (repo, fetch_outcome) = self.fetch_only(progress, should_interrupt)?;
235235

236236
let mut checkout = crate::clone::PrepareCheckout {

0 commit comments

Comments
 (0)