Skip to content
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

Remove some API of the key-value feature #585

Merged
merged 3 commits into from Oct 9, 2023

Conversation

Thomasdezeeuw
Copy link
Collaborator

Based on the review done in #584.

Best review by commit.

These types are more related to serde and sval than they are to log.
Because of that is falls out of scope for the log crate.
To support downcasting the Value::capture_* methods should be used.
However with these ToValue implementations it's very easy to call
to_value and call it a day, too easy as you lose the downcasting ability
when you do. To prevent this gotcha remove these implenentations.
Key::as_str can be used instead.
Copy link
Contributor

@KodrAus KodrAus left a comment

Choose a reason for hiding this comment

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

Thanks @Thomasdezeeuw!

@KodrAus KodrAus merged commit b834897 into rust-lang:master Oct 9, 2023
14 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the review_removals branch October 9, 2023 09:02
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.

None yet

2 participants