Skip to content

Commit

Permalink
Update src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored Jan 17, 2024
1 parent 0f3c27e commit 15534c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ fn extract_crate_names(
let workspace = dep_value.get("workspace").and_then(|w| w.as_bool()).unwrap_or_default();

let pkg_name = workspace
.then(|| workspace_dependencies.get(dep_name).map(|p| p.as_ref()))
.then(|| workspace_dependencies.get(pkg_name).map(|p| p.as_ref()))
.flatten()
.unwrap_or(pkg_name);

Expand Down

0 comments on commit 15534c7

Please sign in to comment.