You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, while ref on the left-hand side is not idiomatic Rust, mut on the left-hand side is, and often the code would look much clearer if written as:
let mut foo = false;
(With corresponding changes to code using foo.)
The text was updated successfully, but these errors were encountered:
When clippy sees code like this:
let ref mut foo = false;
It'll suggest changing it to this:
let foo = &mut false;
However, while
ref
on the left-hand side is not idiomatic Rust,mut
on the left-hand side is, and often the code would look much clearer if written as:let mut foo = false;
(With corresponding changes to code using
foo
.)The text was updated successfully, but these errors were encountered: