Add mutation excludes for impl encoding::Decoder
What changed, and why it matters
This commit only updates a mutation testing configuration file. It tells the mutation testing tool not to bother testing certain simple functions that are just type casts for performance reasons. There is no code change, no bug fix, and no security relevance.
No action needed. This is a testing configuration change with no security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds a single line to .cargo/mutants.toml excluding
Changed components
.cargo/mutants.tomlInspect captured patch +1 / −0
diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml
index f43eb356..74680b18 100644
--- a/.cargo/mutants.toml
+++ b/.cargo/mutants.toml
@@ -12,6 +12,7 @@ exclude_re = [
"serde_details::<impl de::Visitor<'_>", # Skip serde mutation tests
"Iterator", # Mutating operations in an iterator can result in an infinite loop
"<impl encoding::Decodable for .*>::decoder", # Mutant replacing Default::default() is equivalent to returning new()
+ "<impl encoding::Decoder for .*>::min_bytes_needed", # Function is just a cast for optimization.
# ----------------------------------Crate-specific exclusions----------------------------------
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.