diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-03-20 14:56:40 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-03-20 14:56:40 +0100 |
commit | 8ff03cff581f7f05015cd3567cf9814e4b87dec1 (patch) | |
tree | 06eb7a97ada9bbdec9944100278574f9b8b0a219 | |
parent | 57a8ad0cbe07ebfa477476ce554027bbf469c54c (diff) |
remove last references to FmError & FmResult in documentation
-rw-r--r-- | src/decompress.rs | 6 | ||||
-rw-r--r-- | src/main.rs | 1 | ||||
-rw-r--r-- | src/opener.rs | 2 | ||||
-rw-r--r-- | src/utils.rs | 1 |
4 files changed, 1 insertions, 9 deletions
diff --git a/src/decompress.rs b/src/decompress.rs index 8894abef..916293a3 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 ef184d2d..1ca67fc5 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 d73058c1..1dc02a0c 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 ea65e86b..7632b6eb 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}; |