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

suggestions for #85 #1

Merged
merged 6 commits into from
Mar 8, 2022
Merged

Conversation

hawkw
Copy link

@hawkw hawkw commented Mar 7, 2022

This branch makes a few changes I suggested to PR tokio-rs#85.

This includes:

  • Add a From<&'a dyn Display> impl for Value
  • Change Value::as_display to return a Display trait object
    for all primitive Value types that implement Display, rather
    than only for dyn Display values
  • Add quotes to dyn Display values in Value's Debug impl
    to more clearly indicate that they are essentially a form of string
  • Add support for Value::Display in valuable-serde

@chanks, please let me know what you think of these suggestions
and feel free to merge my PR into your branch for tokio-rs#85 if you like!

hawkw and others added 6 commits March 3, 2022 09:47
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This indicates that `Display` values are essentially being recorded as
strings, rather than structured data, in the `Debug` output.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@chanks chanks merged commit 8b40f38 into chanks:chanks/display Mar 8, 2022
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.

3 participants