diff --git a/src/config.rs b/src/config.rs index eca151da..a26455fb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -885,7 +885,7 @@ impl Config { pub fn shell(&self) -> Option<&Path> { self.shell .as_ref() - .map(|p| p.as_path()) + .map(PathBuf::as_path) } fn load_from>(path: P) -> Result {