Closed bkchr closed 1 year ago
This fixes an issue for crates that import itself. Before we would have returned FoundCrate::Name("the-name-of-the-other-instance") instead of FoundCrate::Itself. This pull request fixes this behavior by ensuring that it returns FoundCrate::Itself.
FoundCrate::Name("the-name-of-the-other-instance")
FoundCrate::Itself
Closes: https://github.com/bkchr/proc-macro-crate/issues/26
This fixes an issue for crates that import itself. Before we would have returned
FoundCrate::Name("the-name-of-the-other-instance")
instead ofFoundCrate::Itself
. This pull request fixes this behavior by ensuring that it returnsFoundCrate::Itself
.Closes: https://github.com/bkchr/proc-macro-crate/issues/26