aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHonza Pokorny <me@honza.ca>2017-01-07 08:43:34 -0400
committerHonza Pokorny <me@honza.ca>2017-01-07 08:43:34 -0400
commita01ef5568fcae92f420dd9314d916b80e2507ff8 (patch)
tree7d73828da2087cd502e9d128e9b44ea4df8e1156
parente98e6bdf644fbb30bfcfcebd95b27f1ceee6dd1f (diff)
downloadalacritty-a01ef5568fcae92f420dd9314d916b80e2507ff8.tar.gz
alacritty-a01ef5568fcae92f420dd9314d916b80e2507ff8.zip
Avoid unnecessary closure in a map call
-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> {