1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Avoid unnecessary closure in a map call

This commit is contained in:
Honza Pokorny 2017-01-07 08:43:34 -04:00
parent e98e6bdf64
commit a01ef5568f

View file

@ -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> {