Avoid unnecessary closure in a map call
This commit is contained in:
parent
e98e6bdf64
commit
a01ef5568f
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue