diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-12-05 22:21:36 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-12-05 22:21:36 +0100 |
commit | 70fc5c0c23161180e18a142c5885ba7210db3c59 (patch) | |
tree | 6f620115c9bad462ea45a1b33f090ff8c1ca93bc /src/marks.rs | |
parent | f823b4e64c464acef5dec136c077bc5fb3a3c9ec (diff) |
refactor
Diffstat (limited to 'src/marks.rs')
-rw-r--r-- | src/marks.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/marks.rs b/src/marks.rs index 2c2eb8b..00e83b5 100644 --- a/src/marks.rs +++ b/src/marks.rs @@ -6,8 +6,7 @@ use std::path::{Path, PathBuf}; use log::info; -use crate::fm_error::FmError; -use crate::fm_error::FmResult; +use crate::fm_error::{FmError, FmResult}; static MARKS_FILEPATH: &str = "~/.config/fm/marks.cfg"; @@ -51,7 +50,7 @@ impl Marks { pub fn new_mark(&mut self, ch: char, path: PathBuf) -> FmResult<()> { if ch == ':' { - return Err(crate::fm_error::FmError::new("':' can't be used as a mark")); + return Err(FmError::new("':' can't be used as a mark")); } self.marks.insert(ch, path); self.save_marks() |