aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
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<P: Into<PathBuf>>(path: P) -> Result<Config> {