Skip to content

Small Issues before 1.0 #1

@hummingly

Description

@hummingly

Hey I was the person who reviewed your crate on Reddit :)

I looked at your changes and one thing made me curious. You're using now a NonZeroI8 instead of a u8 which would mean there could be also negative days. If that isn't what you intended, I would recommend using a NonZeroU8.
Another thing that could be a little bit annoying for users is the conversion from u64 to Day. Any conversion that could fail shouldn't use the From trait but rather the TryFrom one.

Hope that helps towards 1.0!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions