New rule: Prevent assignment expressions in assert statements (#7856)

This commit is contained in:
Harutaka Kawamura 2023-10-10 04:35:11 +09:00 committed by GitHub
parent 74b00c9b91
commit 7faa43108f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 93 additions and 0 deletions

View file

@ -1047,6 +1047,7 @@ mod tests {
Rule::TooManyPublicMethods,
Rule::UndocumentedWarn,
Rule::UnnecessaryEnumerate,
Rule::AssignmentInAssert,
];
#[allow(clippy::needless_pass_by_value)]