mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Suppress cast_possible_truncation lint in generated Hash shim
This commit is contained in:
parent
9e3df911c5
commit
d717e8a1a0
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user