Exclude mutating `ExactSizeEncoder::is_empty`
What changed, and why it matters
This commit only updates a configuration file used by an automated mutation-testing tool. It tells the tool not to waste time trying to mutate a very simple default method called `is_empty` on an encoder type. There is no change to actual library code, no bug fix, and no security relevance.
No action needed; this is a testing-tool configuration change with no security or functional impact.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds one line to .cargo/mutants.toml, an exclusion list for cargo-mutants. The new regex consensus_encoding/.* ExactSizeEncoder::is_empty prevents the mutation tester from generating mutants for the trivial is_empty default implementation. No Rust source code is modified, no behavior changes, and no vulnerability is addressed.
Changed components
.cargo/mutants.tomlInspect captured patch +1 / −0
diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml
index 31103bbe..7c3133bf 100644
--- a/.cargo/mutants.toml
+++ b/.cargo/mutants.toml
@@ -78,4 +78,5 @@ exclude_re = [
"consensus_encoding/.* DecoderStatus::is_ready", # Replacing with true causes an infinite loop
"consensus_encoding/.* delete ! in drain_to_vec", # Causes an infinite loop.
"consensus_encoding/.* delete ! in drain_to_writer", # Causes an infinite loop.
+ "consensus_encoding/.* ExactSizeEncoder::is_empty", # Too trivial to test.
]
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.