diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 16:55:36 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-04 16:59:39 -0400 |
commit | 97a1b5a9ad52f1d706b02ab6c7cd019da9a124b9 (patch) | |
tree | 2f407ff91aaa6595626e1904430fb0ba44f6d630 /src/commands/rename_file.rs | |
parent | fd4bd6f79ec8051c91f69543fc20d5e8d6607f13 (diff) |
change pub fields to private and rename structs to io
Diffstat (limited to 'src/commands/rename_file.rs')
-rw-r--r-- | src/commands/rename_file.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/rename_file.rs b/src/commands/rename_file.rs index c4166f3..cca52a2 100644 --- a/src/commands/rename_file.rs +++ b/src/commands/rename_file.rs @@ -69,7 +69,7 @@ impl JoshutoRunnable for RenameFile { let curr_list = &context.tabs[context.curr_tab_index].curr_list; if let Some(s) = curr_list.get_curr_ref() { - path = Some(s.path.clone()); + path = Some(s.file_path().clone()); } if let Some(path) = path { @@ -133,7 +133,7 @@ impl JoshutoRunnable for RenameFileAppend { let file_name = match curr_list.get_curr_ref() { Some(s) => { let escaped = escape( - s.file_name.clone(), + String::from(s.file_name()), ESCAPE_CHAR, &DEFAULT_BREAK_CHARS, Quote::None, @@ -194,7 +194,7 @@ impl JoshutoRunnable for RenameFilePrepend { let file_name = match curr_list.get_curr_ref() { Some(s) => { let escaped = escape( - s.file_name.clone(), + String::from(s.file_name()), ESCAPE_CHAR, &DEFAULT_BREAK_CHARS, Quote::None, |