1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Index: gix-archive/src/write.rs
===================================================================
--- gix-archive.orig/src/write.rs
+++ gix-archive/src/write.rs
@@ -52,7 +52,9 @@ where
}
#[cfg(not(feature = "tar"))]
{
- Err(Error::SupportNotCompiledIn { wanted: Format::Tar })
+ return Err(Error::SupportNotCompiledIn {
+ wanted: Format::Tar,
+ });
}
}
Format::TarGz { compression_level } => {
@@ -76,7 +78,9 @@ where
}
#[cfg(not(feature = "tar_gz"))]
{
- Err(Error::SupportNotCompiledIn { wanted: Format::TarGz })
+ return Err(Error::SupportNotCompiledIn {
+ wanted: Format::TarGz { compression_level },
+ });
}
}
})
@@ -245,7 +249,7 @@ fn tar_entry_type(mode: gix_object::tree
}
}
-#[cfg(any(feature = "tar", feature = "tar_gz"))]
+#[cfg(any(feature = "tar", feature = "tar_gz", feature = "zip"))]
fn add_prefix<'a>(relative_path: &'a bstr::BStr, prefix: Option<&bstr::BString>) -> std::borrow::Cow<'a, bstr::BStr> {
use std::borrow::Cow;
match prefix {
|