diff options
| author | Mel <einebeere@gmail.com> | 2021-10-02 21:30:03 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2021-10-02 21:30:03 +0200 |
| commit | cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5 (patch) | |
| tree | d3b415c9480ff6d57b98d6f4355bd37636b7dd2e /src/actions/update.rs | |
| parent | 55da5ae8cf731c768d6cc580693068e64234a4af (diff) | |
| download | ka-cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5.tar.zst ka-cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5.zip | |
Immutable Fs implementation and replaced exists calls.
Diffstat (limited to 'src/actions/update.rs')
| -rw-r--r-- | src/actions/update.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/update.rs b/src/actions/update.rs index 8201862..421d5b0 100644 --- a/src/actions/update.rs +++ b/src/actions/update.rs @@ -11,7 +11,7 @@ use crate::{ use super::ActionOptions; -pub fn update(command_options: ActionOptions, fs: &mut impl Fs) -> Result<()> { +pub fn update(command_options: ActionOptions, fs: &impl Fs) -> Result<()> { let timestamp = SystemTime::now() .duration_since(SystemTime::UNIX_EPOCH)? .as_secs(); @@ -51,7 +51,7 @@ pub fn update(command_options: ActionOptions, fs: &mut impl Fs) -> Result<()> { } fn get_new_history_for_file<FS: Fs>( - fs: &mut FS, + fs: &FS, cursor: usize, file_state: &FileState, locations: &Locations, |
