linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 opened on Jul 30, 2024

 (3 comments) (1 reaction) (0 assignees)Rust (92 forks)github user discovery
good first issuehelp wanted

Repository metrics

Stars
 (620 stars)
PR merge metrics
 (Avg merge 19d 11h) (38 merged PRs in 30d)

Description

In fontique there are some methods parse which could instead use FromStr and be able to use the str::parse function as detailed here: https://doc.rust-lang.org/std/primitive.str.html#method.parse

These methods are:

  • GenericFamily::parse()
  • Stretch::parse()
  • Style::parse()
  • Weight::parse()

This was suggested by @DJMcNab in #97.

Contributor guide