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
Hello, after updating to Rust stable 1.44.0 (and clippy with it) via rustup, I have encountered a false positive with the redundant_clone lint.
fnfoo(_: threadpool::ThreadPool){// Do something with the pool}fnmain(){let pool = threadpool::ThreadPool::new(4);
pool.clone().execute(move || {foo(pool)})}
Here is a link to the playground, I don't really know how to explain what is happening but I know that it is not possible to remove the clone in my example as I am moving the value while borrowing it.
Hello, after updating to Rust stable 1.44.0 (and clippy with it) via rustup, I have encountered a false positive with the redundant_clone lint.
Here is a link to the playground, I don't really know how to explain what is happening but I know that it is not possible to remove the clone in my example as I am moving the value while borrowing it.
Thanks!
Here is my clippy version:
The text was updated successfully, but these errors were encountered: