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

facet-rs / facet / 19945465478
58%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2025 10:07PM UTC
Jobs 1
Files 190
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

04 Dec 2025 10:05PM UTC coverage: 57.761% (+0.01%) from 57.749%
19945465478

push

github

fasterthanlime
fix(facet-kdl): skip solver disambiguation when variant matched by node name

When deserializing Vec<Enum> with #[facet(kdl::children)], the node name
should be used as the variant discriminator. Previously, even after
successfully matching a variant by node name (e.g., "save-screenshot" →
SaveScreenshot), the code would still invoke the solver for enum
disambiguation. This caused "Ambiguous" errors when variants had
identical field structures.

The fix checks if a variant has already been matched by node name
(variant_fields.is_some()) and skips solver-based disambiguation in
that case - the node name already told us which variant to use.

Fixes an issue where this KDL:
```kdl
keymap {
    save-screenshot keys=s
    copy-to-clipboard keys=<enter>
}
```

Would fail with "Ambiguous: multiple resolutions match" because both
SaveScreenshot and CopyToClipboard have identical `keys: String` fields.

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

22801 of 39475 relevant lines covered (57.76%)

502.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19945465478.1 04 Dec 2025 10:07PM UTC 190
57.76
GitHub Action Run
Source Files on build 19945465478
  • Tree
  • List 190
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 35c6fc68 on github
  • Prev Build on main (#19944716089)
  • Next Build on main (#19946522664)
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