Slight readablity improvement

This commit is contained in:
Emil Lauridsen 2020-03-17 14:56:14 +01:00
parent e154132c91
commit 5af81b8456

View file

@ -142,7 +142,7 @@ impl Package {
ws.packages[self].dependencies.iter()
}
pub fn out_dir(self, ws: &CargoWorkspace) -> Option<&Path> {
ws.packages[self].out_dir.as_ref().map(|od| od.as_path())
ws.packages[self].out_dir.as_ref().map(PathBuf::as_path)
}
}