Skip to content

refactor!: Make KeyValuePairs an alias for BTreeMap #889

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

nightkr
Copy link
Contributor

@nightkr nightkr commented Oct 14, 2024

This is effectively an extended version of #888 (and supersedes it).

@nightkr nightkr requested a review from Techassi October 14, 2024 09:27
@nightkr nightkr linked an issue Oct 14, 2024 that may be closed by this pull request
Copy link
Member

@Techassi Techassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice job, I like it!

Left a bunch of small comments, nothing major.

Comment on lines 24 to 27
#[cfg(doc)]
use k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
#[cfg(doc)]
use std::ops::Deref;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Move these imports to the std library and external crate imports at the top of the file.

Copy link
Contributor Author

@nightkr nightkr Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to call out doc-only "fake" imports as different from regular one (just like publics), though we definitely haven't done a great job at consistency around that in general.

@Techassi Techassi changed the title Reorganize kvp so that KeyValuePairs is an alias for BTreeMap instead of newtyping it refactor!: Make KeyValuePairs an alias for BTreeMap Aug 12, 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.

KeyValuePairs::extend implements a nonsense merge
2 participants