diff --git a/super_native_extensions/rust/src/android/drag.rs b/super_native_extensions/rust/src/android/drag.rs index 48908d5e..91ff4406 100644 --- a/super_native_extensions/rust/src/android/drag.rs +++ b/super_native_extensions/rust/src/android/drag.rs @@ -76,7 +76,8 @@ impl PlatformDragContext { let a = image.data[pos + 3] as i32; // Contrary to what ARGB_8888 documentation says the colors are // indeed encoded in ARGB order. - let color = (a & 0xff) << 24 | (r & 0xff) << 16 | (g & 0xff) << 8 | (b & 0xff); + let color = + ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); tmp[y * image.width as usize + x] = color; } } diff --git a/super_native_extensions/rust/src/lib.rs b/super_native_extensions/rust/src/lib.rs index b7a50907..15bd7909 100644 --- a/super_native_extensions/rust/src/lib.rs +++ b/super_native_extensions/rust/src/lib.rs @@ -9,6 +9,8 @@ #![allow(dead_code)] // TODO(knopp): Remove once supported on stable #![allow(clippy::needless_lifetimes)] +// TODO(knopp): False positive in 1.83.0. +#![allow(clippy::missing_const_for_thread_local)] use std::ffi::c_void;