Suppress cast_possible_truncation lint in generated Hash shim

This commit is contained in:
David Tolnay 2020-12-29 15:40:27 -08:00
parent 9e3df911c5
commit d717e8a1a0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 1 additions and 1 deletions

View File

@ -259,6 +259,7 @@ fn expand_struct_operators(strct: &Struct) -> TokenStream {
operators.extend(quote_spanned! {span=>
#[doc(hidden)]
#[export_name = #link_name]
#[allow(clippy::cast_possible_truncation)]
extern "C" fn #local_name(this: &#ident) -> usize {
let mut hasher = ::std::collections::hash_map::DefaultHasher::new();
::std::hash::Hash::hash(this, &mut hasher);

View File

@ -1,6 +1,5 @@
#![allow(
clippy::boxed_local,
clippy::cast_possible_truncation,
clippy::just_underscores_and_digits,
clippy::let_underscore_drop,
clippy::must_use_candidate,