From 809211f72cc0883c2669d85e2e115cee56e9c690 Mon Sep 17 00:00:00 2001 From: Michal Date: Fri, 29 Jul 2022 09:59:53 +0100 Subject: [PATCH] Tamed the borrow checker --- src/operations/pull.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/pull.rs b/src/operations/pull.rs index 6314ba5..a07eea1 100644 --- a/src/operations/pull.rs +++ b/src/operations/pull.rs @@ -73,7 +73,7 @@ fn do_the_pulling(repos: Vec, verbose: bool, params: &PullParams) { .unwrap(); } // Return to root dir - env::set_current_dir(root_dir).unwrap(); + env::set_current_dir(&root_dir).unwrap(); log!( verbose, "Returned to root dir: {:?}",