Update crates/project_model/src/workspace.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
30ed7fac27
commit
a654955159
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ fn project_json_to_crate_graph(
|
|||
CrateOrigin::CratesIo {
|
||||
repo: krate.repository.clone(),
|
||||
name: name.crate_name().to_string(),
|
||||
version: krate.version.clone().unwrap_or_else(|| "".to_string()),
|
||||
version: krate.version.clone().unwrap_or_default(),
|
||||
}
|
||||
} else {
|
||||
CrateOrigin::Unknown
|
||||
|
|
Loading…
Add table
Reference in a new issue