Skip to content

Commit 5af81b8

Browse files
committed
Slight readablity improvement
1 parent e154132 commit 5af81b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_project_model/src/cargo_workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl Package {
142142
ws.packages[self].dependencies.iter()
143143
}
144144
pub fn out_dir(self, ws: &CargoWorkspace) -> Option<&Path> {
145-
ws.packages[self].out_dir.as_ref().map(|od| od.as_path())
145+
ws.packages[self].out_dir.as_ref().map(PathBuf::as_path)
146146
}
147147
}
148148

0 commit comments

Comments
 (0)