-
Notifications
You must be signed in to change notification settings - Fork 36
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
Comments
RobertGauld
added a commit
to RobertGauld/humantime
that referenced
this issue
Sep 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
std::time::Duration
implementsDefault
and uses a zero duration fordefault()
.Please add this possibility to humantime! I use the Duration in configuration options. However, it becomes quite verbose to
derive
things likeDefault
orserde::Deserialize
with a#[serde(default)]
.I can also make a PR if wished.
The text was updated successfully, but these errors were encountered: