Skip to content

Conversation

ljahier
Copy link

@ljahier ljahier commented Mar 14, 2025

Hey maintainer,

I've implemented the Display trait for the Version enum to align its use with other components such as Uri and Method.

This enhancement simplifies code when working with libraries such as Axum, which exploits the http crate. Previously, converting a Version into a string (for inclusion in OpenTelemetry span in my case) required the use of the format! macro!

With this implementation, we can now call .to_string() directly on Version instances, simplifying the code base and improving readability.

@ljahier ljahier marked this pull request as draft March 14, 2025 16:42
@ljahier ljahier marked this pull request as ready for review March 14, 2025 16:49
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.

1 participant