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

facet-rs / facet / 19945465478 / 1
58%
main: 58%

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

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.

22801 of 39475 relevant lines covered (57.76%)

502.57 hits per line

Source Files on job 19945465478.1
  • Tree
  • List 190
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19945465478
  • 35c6fc68 on github
  • Prev Job for on main (#19944716089.1)
  • Next Job for on main (#19946522664.1)
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