about summary refs log tree commit diff
path: root/src/actions/shift.rs
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2021-10-02 21:30:03 +0200
committerMel <einebeere@gmail.com>2021-10-02 21:30:03 +0200
commitcf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5 (patch)
treed3b415c9480ff6d57b98d6f4355bd37636b7dd2e /src/actions/shift.rs
parent55da5ae8cf731c768d6cc580693068e64234a4af (diff)
downloadka-cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5.tar.zst
ka-cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5.zip
Immutable Fs implementation and replaced exists calls.
Diffstat (limited to 'src/actions/shift.rs')
-rw-r--r--src/actions/shift.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/shift.rs b/src/actions/shift.rs
index 8f37874..b9e62ac 100644
--- a/src/actions/shift.rs
+++ b/src/actions/shift.rs
@@ -10,7 +10,7 @@ use crate::{
 
 use super::ActionOptions;
 
-pub fn shift(command_options: ActionOptions, fs: &mut impl Fs, new_cursor: usize) -> Result<()> {
+pub fn shift(command_options: ActionOptions, fs: &impl Fs, new_cursor: usize) -> Result<()> {
     let locations = Locations::from(&command_options);
 
     let repository_index_path = locations.get_repository_index_path();
@@ -38,7 +38,7 @@ pub fn shift(command_options: ActionOptions, fs: &mut impl Fs, new_cursor: usize
             acc
         })
         .iter()
-        .map(|path| FileState::from_working(&locations, path))
+        .map(|path| FileState::from_working(fs, &locations, path))
         .collect();
 
     for state in affected_files_by_shift? {