Closed
Description
I ignore some errors with try
block. I annotate type via let _: Result<...> = try { ... }
. But clippy:
warning: non-binding `let` on a type that implements `Drop`
--> some/path:
|
| / let _: Result<_> = try {
| | . . .
| | };
| |__________^
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
How can I fix this
Activity
let_underscore_drop
to restriction #9696Auto merge of #9696 - Alexendoo:let-underscore-drop, r=flip1995
let_underscore_lock
andlet_underscore_drop
as uplifted #9697