humantime icon indicating copy to clipboard operation
humantime copied to clipboard

Please impl Default for humantime::Duration

Open aawsome opened this issue 3 years ago • 0 comments

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.

aawsome avatar Sep 01 '22 19:09 aawsome