mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
e1da00210a
[significant_drop_tightening] Ignore inexpensive statements Not all statements that follow the last use of a lock guard are expensive and can therefore be ignored by the lint. ```rust pub fn foo() -> i32 { let mutex = Mutex::new(1); let lock = mutex.lock().unwrap(); let rslt = *lock; let another = rslt; another } ``` --- changelog: [`significant_drop_tightening`]: No longer lints for inexpensive statements after the lock guard [#10363](https://github.com/rust-lang/rust-clippy/pull/10363) <!-- changelog_checked --> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |