fix: add fix for bug, fix test name

This commit is contained in:
Kristof Mattei 2024-01-13 17:44:27 -07:00
parent 5769c21f23
commit d975e267b9
No known key found for this signature in database
GPG key ID: 89668E582D199AA8
3 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,7 @@ pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) {
if let Some(resolve) = &metadata.resolve
&& let Some(local_id) = packages.iter().find_map(|p| {
if p.name == local_name.as_str() {
if p.name.replace('-', "_") == local_name.as_str() {
Some(&p.id)
} else {
None