mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
Make methods in path not unnecessairly take &mut
This commit is contained in:
committed by
Fabian Boehm
parent
cf8e0ae1b5
commit
7c2311abd7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user