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
josh fails to install on recent versions of rustc:
$ cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r22.12.06
[...]
error: call to `.clone()` on a reference in this situation does nothing
--> josh-proxy/src/bin/josh-proxy.rs:1144:44
|
1144 | cmd.env("GIT_NAMESPACE", temp_ns.name().clone());
| ^^^^^^^^ help: remove this redundant call
|
= note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
note: the lint level is defined here
--> josh-proxy/src/bin/josh-proxy.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(noop_method_call)]` implied by `#[deny(warnings)]`
It's generally a bad idea to have deny(warnings) in your code; instead you should setRUSTFLFAGS="-D warnings" on CI. That way you get told about warnings but you don't prevent users from installing your project.
The text was updated successfully, but these errors were encountered:
josh fails to install on recent versions of rustc:
It's generally a bad idea to have
deny(warnings)
in your code; instead you should setRUSTFLFAGS="-D warnings"
on CI. That way you get told about warnings but you don't prevent users from installing your project.The text was updated successfully, but these errors were encountered: