• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facet-rs / facet / 20069503463
58%

Build:
DEFAULT BRANCH: main
Ran 09 Dec 2025 03:48PM UTC
Jobs 1
Files 209
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Dec 2025 03:47PM UTC coverage: 58.736% (+0.001%) from 58.735%
20069503463

push

github

fasterthanlime
fix(facet-args): handle Option<T> positional arguments correctly

Previously, when parsing a positional argument into an Option<String>
or Option<T> field, facet-args would try to call `parse_from_str` on
the Option type directly, which failed because Option doesn't implement
FromStr.

This fix adds a case in `handle_value` to detect `Def::Option` and
properly wrap the parsed value in `Some` by:
1. Calling `begin_some()` to enter the Some variant
2. Parsing the inner value
3. Calling `end()` to close the Some

Also adds a regression test and updates the snapshot for the
"multiple values for Option" error case (which now correctly
reports "unexpected positional" instead of "cannot be parsed").

3 of 3 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

26175 of 44564 relevant lines covered (58.74%)

635.66 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
79.7
-0.37% facet-args/src/error.rs
Jobs
ID Job ID Ran Files Coverage
1 20069503463.1 09 Dec 2025 03:48PM UTC 209
58.74
GitHub Action Run
Source Files on build 20069503463
  • Tree
  • List 209
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1cf12db9 on github
  • Prev Build on main (#20068996792)
  • Next Build on main (#20071389342)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc