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

Re-export time's well_known formats. #1851

Closed
sedrik opened this issue May 3, 2022 · 1 comment
Closed

Re-export time's well_known formats. #1851

sedrik opened this issue May 3, 2022 · 1 comment

Comments

@sedrik
Copy link
Contributor

sedrik commented May 3, 2022

Would it make sense to re-export the well_known formats from time?

https://docs.rs/time/0.3.9/time/format_description/well_known/index.html

That way formatting a OffsetDateTime could be .format(&Rfc3339) instead of having to spell it out all together.

@abonander
Copy link
Collaborator

I'd rather not. The only reason the types from time are reexported in the first place is give them predictable paths for the macros since crates can be renamed.

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

No branches or pull requests

2 participants