From ba1f8ac239a08153835973e667e6fd406ecfa550 Mon Sep 17 00:00:00 2001 From: Ellis Clayton Date: Thu, 30 Apr 2026 19:08:40 +1000 Subject: [PATCH] Have expand_home take Path over PathBuf PathBuf isn't really needed because we neither need ownership nor mutation of the input path. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 54f8593..95ef7a6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -654,7 +654,7 @@ impl<'a> Config<'a> { } /// Expands tilde (~) prefixed directories into its absolute version -fn expand_home<'a>(input_path: &'a PathBuf, home_path: Option<&PathBuf>) -> Result> { +fn expand_home<'a>(input_path: &'a Path, home_path: Option<&PathBuf>) -> Result> { if input_path.is_absolute() { return Ok(Cow::Borrowed(input_path)); }