From a01ef5568fcae92f420dd9314d916b80e2507ff8 Mon Sep 17 00:00:00 2001 From: Honza Pokorny Date: Sat, 7 Jan 2017 08:43:34 -0400 Subject: [PATCH] Avoid unnecessary closure in a map call --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {