Skip to content

Commit

Permalink
style: remove needless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Feb 19, 2024
1 parent 8defded commit 188dbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fn default_daemon_dir() -> PathBuf {
fn default_config_files() -> Vec<OsString> {
let mut files = vec![OsString::from("electrs.toml")]; // cwd
if let Some(mut path) = home_dir() {
path.extend(&[".electrs", "config.toml"]);
path.extend([".electrs", "config.toml"]);
files.push(OsString::from(path)) // home directory
}
files.push(OsString::from("/etc/electrs/config.toml")); // system-wide
Expand Down

0 comments on commit 188dbcd

Please sign in to comment.