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:
parent
e98e6bdf64
commit
a01ef5568f
1 changed files with 1 additions and 1 deletions
|
@ -885,7 +885,7 @@ impl Config {
|
||||||
pub fn shell(&self) -> Option<&Path> {
|
pub fn shell(&self) -> Option<&Path> {
|
||||||
self.shell
|
self.shell
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|p| p.as_path())
|
.map(PathBuf::as_path)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn load_from<P: Into<PathBuf>>(path: P) -> Result<Config> {
|
fn load_from<P: Into<PathBuf>>(path: P) -> Result<Config> {
|
||||||
|
|
Loading…
Reference in a new issue