Skip to content

Please impl Default for humantime::Duration #33

@aawsome

Description

@aawsome

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions