From 5af81b8456b5fedcc981145bbead7cc7b6b2fc19 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Tue, 17 Mar 2020 14:56:14 +0100 Subject: Slight readablity improvement --- crates/ra_project_model/src/cargo_workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs index eeeb10233..72cb5d388 100644 --- a/crates/ra_project_model/src/cargo_workspace.rs +++ b/crates/ra_project_model/src/cargo_workspace.rs @@ -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) } } -- cgit v1.2.3