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

Please impl Default for humantime::Duration #33

Open
aawsome opened this issue Sep 1, 2022 · 0 comments
Open

Please impl Default for humantime::Duration #33

aawsome opened this issue Sep 1, 2022 · 0 comments

Comments

@aawsome
Copy link

aawsome commented Sep 1, 2022

std::time::Duration implements Default and uses a zero duration for default().

Please add this possibility to humantime! I use the Duration in configuration options. However, it becomes quite verbose to derive things like Default or serde::Deserialize with a #[serde(default)].

I can also make a PR if wished.

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

1 participant