RS.CLIPPY.MULTI_ASSIGNMENTS
Instead of using `a = b = c;` use `a = c; b = c;`
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: multi_assignments. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for nested assignments.
Why is this bad?
While this is in most cases already a type mismatch,
the result of an assignment being () can throw off people coming from languages like python or C,
where such assignments return a copy of the assigned value.
Example
a = b = 42;
Use instead:
b = 42;
a = b;