From 7c2311abd720df38403db1f77079a1cad16eb37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Fri, 18 Aug 2023 07:04:09 +0200 Subject: [PATCH] Make methods in path not unnecessairly take &mut --- fish-rust/src/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish-rust/src/path.rs b/fish-rust/src/path.rs index d33f605d0..678dfa675 100644 --- a/fish-rust/src/path.rs +++ b/fish-rust/src/path.rs @@ -72,7 +72,7 @@ pub fn path_get_config_remoteness() -> DirRemoteness { /// Emit any errors if config directories are missing. /// Use the given environment stack to ensure this only occurs once. #[widestrs] -pub fn path_emit_config_directory_messages(vars: &mut EnvStack) { +pub fn path_emit_config_directory_messages(vars: &EnvStack) { let data = get_data_directory(); if !data.success() { maybe_issue_path_warning( @@ -118,7 +118,7 @@ fn maybe_issue_path_warning( xdg_var: &wstr, path: &wstr, saved_errno: libc::c_int, - vars: &mut EnvStack, + vars: &EnvStack, ) { let warning_var_name = "_FISH_WARNED_"L.to_owned() + which_dir; if vars