Rename min_bytes_needed cargo mutants exclude
What changed, and why it matters
This commit is a trivial configuration-only rename. It updates a single line in the project's mutation-testing exclusion file so that the correct function name ('read_limit') is skipped by the cargo-mutants tool, replacing the old name ('min_bytes_needed'). It does not change any production code, cryptographic logic, network handling, or user-facing behavior.
No security action needed. This is a benign tooling/CI configuration fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff changes one line in .cargo/mutants.toml, replacing an exclude_re pattern for ‘min_bytes_needed’ with ‘read_limit’. This file controls which functions the cargo-mutants mutation-testing framework skips. The change has no effect on compiled binaries, APIs, or security-sensitive code paths.
Changed components
.cargo/mutants.tomlInspect captured patch +1 / −1
diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml
index 7dfd9912..6a0b2c0d 100644
--- a/.cargo/mutants.toml
+++ b/.cargo/mutants.toml
@@ -12,7 +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.
+ "<impl encoding::Decoder for .*>::read_limit", # 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.