diff --git a/src/cli/unset.rs b/src/cli/unset.rs index 1fd0b43057..0f4c458a6f 100644 --- a/src/cli/unset.rs +++ b/src/cli/unset.rs @@ -76,6 +76,6 @@ mod tests { assert_cli_snapshot!("unset", "BAZ", @""); assert_snapshot!(file::read_to_string(cf_path).unwrap()); remove_config_file(filename); - file::remove_file(&filename).unwrap(); + file::remove_file(filename).unwrap(); } } diff --git a/src/config/config_file/mise_toml.rs b/src/config/config_file/mise_toml.rs index ba7adf87a9..b93a40c6d4 100644 --- a/src/config/config_file/mise_toml.rs +++ b/src/config/config_file/mise_toml.rs @@ -1098,7 +1098,7 @@ mod tests { fn parse(s: String) -> MiseToml { let p = CWD.as_ref().unwrap().join(".test.mise.toml"); - file::write(&p, &s).unwrap(); + file::write(&p, s).unwrap(); MiseToml::from_file(&p).unwrap() }