In crates/diffguard-domain/src/preprocess.rs:107, the match arm:
Language::Yaml | Language::Toml | Language::Json => StringSyntax::CStyle,
// All other languages (C, C++, Java, etc.) use C-style strings
_ => StringSyntax::CStyle,
The wildcard arm _ already covers Yaml, Toml, and Json — the explicit arm is identical dead code. The wildcard comment even says "All other languages" implying it was meant to exclude these.
Fix: Remove the | Language::Yaml | Language::Toml | Language::Json from line 107, leaving only the wildcard arm (or move it above the wildcard if ordering matters for clarity).
In
crates/diffguard-domain/src/preprocess.rs:107, the match arm:The wildcard arm
_already coversYaml,Toml, andJson— the explicit arm is identical dead code. The wildcard comment even says "All other languages" implying it was meant to exclude these.Fix: Remove the
| Language::Yaml | Language::Toml | Language::Jsonfrom line 107, leaving only the wildcard arm (or move it above the wildcard if ordering matters for clarity).