Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Add FromStr implementation to ease integration with parse-display #31

@fogti

Description

@fogti

reference: DieracDelta/flake_generator#8
Currently, we (flake_generator contributors) resorted to wrapping SmolStr in a SmlStr wrapper for implementing FromStr, but I think this should be upstreamed.
e.g.

impl FromStr for SmolStr {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> Result<Self, Self::Err> {
        Ok(s.into())
    }
}

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