Address nit

This commit is contained in:
Emil Lauridsen 2020-01-10 22:41:52 +01:00
parent 1d1eea217d
commit d6da18e99d
3 changed files with 7 additions and 3 deletions

View file

@ -333,7 +333,7 @@ impl ProjectWorkspace {
pub fn workspace_root_for(&self, path: &Path) -> Option<&Path> {
match self {
ProjectWorkspace::Cargo { cargo, .. } => {
Some(cargo.workspace_root.as_ref()).filter(|root| path.starts_with(root))
Some(cargo.workspace_root()).filter(|root| path.starts_with(root))
}
ProjectWorkspace::Json { project: JsonProject { roots, .. } } => roots
.iter()