chore: add comments to explain reasoning

This commit is contained in:
Kristof Mattei 2024-01-14 09:32:36 -07:00
parent 5d06fbb46d
commit b1c52d502d
No known key found for this signature in database
GPG key ID: 89668E582D199AA8

View file

@ -16,6 +16,9 @@ pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) {
if let Some(resolve) = &metadata.resolve
&& let Some(local_id) = packages.iter().find_map(|p| {
// p.name contains the original crate names with dashes intact
// local_name contains the crate name as a namespace, with the dashes converted to underscores
// the code below temporarily rectifies this discrepancy
if p.name
.chars()
.into_iter()