summaryrefslogtreecommitdiffstats
path: root/src/commands/touch_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/touch_file.rs')
-rw-r--r--src/commands/touch_file.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/commands/touch_file.rs b/src/commands/touch_file.rs
index dff1666..458aad4 100644
--- a/src/commands/touch_file.rs
+++ b/src/commands/touch_file.rs
@@ -1,11 +1,11 @@
+use std::fs::File;
use std::path;
+use std::time::SystemTime;
+
+use filetime::FileTime;
use crate::context::AppContext;
use crate::error::JoshutoResult;
-use crate::util::load_child::LoadChild;
-use filetime::FileTime;
-use std::fs::File;
-use std::time::SystemTime;
fn _update_actime(file: &path::Path) -> std::io::Result<()> {
let file_time = FileTime::from_system_time(SystemTime::now());
@@ -44,6 +44,5 @@ pub fn touch_file(context: &mut AppContext, arg: &str) -> JoshutoResult<()> {
if let Some(curr_list) = context.tab_context_mut().curr_tab_mut().curr_list_mut() {
curr_list.reload_contents(&options)?;
}
- LoadChild::load_child(context)?;
Ok(())
}