summaryrefslogtreecommitdiffstats
path: root/src/decompress.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-03-20 14:56:40 +0100
committerqkzk <qu3nt1n@gmail.com>2023-03-20 14:56:40 +0100
commit8ff03cff581f7f05015cd3567cf9814e4b87dec1 (patch)
tree06eb7a97ada9bbdec9944100278574f9b8b0a219 /src/decompress.rs
parent57a8ad0cbe07ebfa477476ce554027bbf469c54c (diff)
remove last references to FmError & FmResult in documentation
Diffstat (limited to 'src/decompress.rs')
-rw-r--r--src/decompress.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/decompress.rs b/src/decompress.rs
index 8894abe..916293a 100644
--- a/src/decompress.rs
+++ b/src/decompress.rs
@@ -5,8 +5,6 @@ use std::path::Path;
use tar::Archive;
/// Decompress a zipped compressed file into its parent directory.
-/// It may fail an return a `FmError` if the file has no parent,
-/// which should be impossible.
pub fn decompress_zip(source: &Path) -> Result<()> {
let file = File::open(source)?;
let mut zip = zip::ZipArchive::new(file)?;
@@ -20,8 +18,6 @@ pub fn decompress_zip(source: &Path) -> Result<()> {
}
/// Decompress a gz compressed file into its parent directory.
-/// It may fail an return a `FmError` if the file has no parent,
-/// which should be impossible.
pub fn decompress_gz(source: &Path) -> Result<()> {
let tar_gz = File::open(source)?;
let tar = GzDecoder::new(tar_gz);
@@ -35,8 +31,6 @@ pub fn decompress_gz(source: &Path) -> Result<()> {
}
/// Decompress a zlib compressed file into its parent directory.
-/// It may fail an return a `FmError` if the file has no parent,
-/// which should be impossible.
pub fn decompress_xz(source: &Path) -> Result<()> {
let tar_xz = File::open(source)?;
let tar = ZlibDecoder::new(tar_xz);