mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-04 02:18:40 +00:00
Added warning for lint clippy::let_underscore_untyped.
This commit is contained in:
parent
65145a5510
commit
eab2349305
@ -55,3 +55,4 @@ clippy.semicolon_if_nothing_returned = "warn"
|
||||
clippy.manual_assert = "warn"
|
||||
clippy.explicit_into_iter_loop = "warn"
|
||||
clippy.needless_pass_by_value = "warn"
|
||||
clippy.let_underscore_untyped = "warn"
|
||||
|
||||
@ -176,7 +176,7 @@ impl<T> !Sync for Handle<T> {}
|
||||
impl<T: 'static> Drop for Handle<T> {
|
||||
#[track_caller]
|
||||
fn drop(&mut self) {
|
||||
let _ = self.take_inner();
|
||||
let _: T = self.take_inner();
|
||||
}
|
||||
}
|
||||
|
||||
@ -242,7 +242,7 @@ impl OpaqueHandle {
|
||||
impl Drop for OpaqueHandle {
|
||||
#[track_caller]
|
||||
fn drop(&mut self) {
|
||||
let _ = self.take_inner();
|
||||
let _: Box<dyn Any> = self.take_inner();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user