summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decompress.rs6
-rw-r--r--src/main.rs1
-rw-r--r--src/opener.rs2
-rw-r--r--src/utils.rs1
4 files changed, 1 insertions, 9 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);
diff --git a/src/main.rs b/src/main.rs
index ef184d2..1ca67fc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,7 +8,6 @@ use fm::args::Args;
use fm::config::load_config;
use fm::constant_strings_paths::CONFIG_PATH;
use fm::event_dispatch::EventDispatcher;
-// use fm::fm_error::FmResult;
use fm::help::Help;
use fm::log::set_loggers;
use fm::status::Status;
diff --git a/src/opener.rs b/src/opener.rs
index d73058c..1dc02a0 100644
--- a/src/opener.rs
+++ b/src/opener.rs
@@ -398,7 +398,7 @@ where
/// Execute a command with options in a fork.
/// Wait for termination and return either :
/// `Ok(stdout)` if the status code is 0
-/// or `Err(FmError::custom(..., ...))` otherwise.
+/// an Error otherwise
/// Branch stdin and stderr to /dev/null
pub fn execute_and_capture_output(exe: &str, args: &Vec<&str>) -> Result<String> {
info!("execute_and_capture_output. executable: {exe}, arguments: {args:?}",);
diff --git a/src/utils.rs b/src/utils.rs
index ea65e86..7632b6e 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -9,7 +9,6 @@ use users::{get_current_uid, get_user_by_uid};
use crate::event_dispatch::EventDispatcher;
use crate::fileinfo::human_size;
-// use crate::fm_error::{FmError, FmResult};
use crate::status::Status;
use crate::term_manager::{Display, EventReader};