From cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 2 Oct 2021 21:30:03 +0200 Subject: Immutable Fs implementation and replaced exists calls. --- cli/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/src/main.rs b/cli/src/main.rs index be52e60..d140d97 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -12,19 +12,19 @@ fn main() { let options = ActionOptions::from_path("./repo"); //let options = ActionOptions::from_pwd().expect("Could not get current path."); - let mut filesystem = FsImpl {}; + let filesystem = FsImpl {}; match command { "create" => { - create(options, &mut filesystem).expect("Failed executing Create action."); + create(options, &filesystem).expect("Failed executing Create action."); } "update" => { - update(options, &mut filesystem).expect("Failed executing Update action."); + update(options, &filesystem).expect("Failed executing Update action."); } "shift" => { let new_cursor: usize = args[2].as_str().parse().expect("Invalid cursor."); - shift(options, &mut filesystem, new_cursor).expect("Failed executing Shift actions."); + shift(options, &filesystem, new_cursor).expect("Failed executing Shift actions."); } _ => panic!("Unknown command: {}", command), } -- cgit 1.4.1