这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix inverted logic from 68c7c5c #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

FloezeTv
Copy link
Contributor

68c7c5c changed get(<...>).is_none() to contains_key(...).
This inverts the result of the code: While the original checks whether the key is absent, the new version would check if the key is present.
This fix inverts the result of contains_key to restore the original behaviour.

I ran into this being an issue when updating the version of a workspace crate without any dependencies.
In this case, the crate would be skipped and the crate's Cargo.toml would not be updated.

`68c7c5c` changed `get(<...>).is_none()` to `contains_key(...)`.
This inverts the result:
While the original checks if the key is absent,
the new version would check if the key is present.
This commit fixes this inverted logic.
@pksunkara pksunkara merged commit d94c3cc into pksunkara:master Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants