Skip to content

Better description in the Rust Clock exercise. #2069

Closed
@jinalskothari

Description

@jinalskothari

https://github.com/exercism/rust/tree/main/exercises/practice/clock

Consider informing the user that they need to implement the Debug and PartialEq traits. Tests would obviously indicate this.

For additional learning, consider how you might implement String::from for the Clock type. You don't have to actually implement this—it's redundant with Display, which is generally the better choice when the destination type is String—but it's useful to have a few type-conversion traits in your toolkit.

Also, is this accurate?

Still learning rust, but happy to do a PR with some guidance.

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