Skip to content

preprocess.rs:107: redundant match arm — Language::Yaml/Toml/Json caught by wildcard #570

@EffortlessSteven

Description

@EffortlessSteven

Location:

Problem: The function has a redundant match arm:

The wildcard () already covers Yaml, Toml, and Json since they are not listed in any other arm. The explicit arm at line 107 is dead code — it can never match because catches everything else. This was introduced as part of issue #515 cleanup but the wildcard catch-all was retained, making the explicit arm redundant.

Impact: Dead code. Also confusing: a reader might think the explicit arm is meaningful when it isn't.

Fix: Remove the redundant arm — the already handles these languages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions