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
Auto merge of #12136 - loongarch-rs:useless-drop, r=hi-rustin
Remove useless drop of copy type
### What does this PR try to resolve?
This PR aims to remove useless drop of copy type to clear warnings that reported after rust-lang/rust#109732
```
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
--> src/cargo/core/compiler/job_queue/mod.rs:1048:21
|
1048 | drop(write!(
| ______________________^____-
| | _____________________|
| ||
1049 | || message,
1050 | || " (run `{command} --{args}` to apply {suggestions})"
1051 | || ))
| ||_____________________-^
| |______________________|
| argument has type `Result<(), std::fmt::Error>`
|
= note: use `let _ = ...` to ignore the expression or result
= note: `#[warn(drop_copy)]` on by default
```
### How should we test and review this PR?
```bash
cargo build && cargo test # without any warnings
```
### Additional information
None
0 commit comments