chore: add mixed_read_write_in_expression clippy correctness lint (#929)

`mixed_read_write_in_expression` checks for a read and a write to the
same variable, where whether the read occurs before or after the write
depends on the evaluation order of sub-expressions.
This commit is contained in:
Alex Yusiuk
2025-08-22 06:28:26 -04:00
committed by GitHub
parent 5fe6043208
commit ff2c968052
+1
View File
@@ -103,6 +103,7 @@ as_underscore = "warn"
# TODO: unwrap_used = "warn" # Lets either handle `None`, `Err` or use `expect` to give a reason.
large_stack_frames = "warn"
mem_forget = "warn"
mixed_read_write_in_expression = "warn"
# == Style, readability == #
semicolon_outside_block = "warn" # With semicolon-outside-block-ignore-multiline = true