Skip to content

Commit d1baec3

Browse files
authored
chore: make clippy happy (#484)
1 parent 87a51f8 commit d1baec3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

super_native_extensions/rust/src/android/drag.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ impl PlatformDragContext {
7676
let a = image.data[pos + 3] as i32;
7777
// Contrary to what ARGB_8888 documentation says the colors are
7878
// indeed encoded in ARGB order.
79-
let color = (a & 0xff) << 24 | (r & 0xff) << 16 | (g & 0xff) << 8 | (b & 0xff);
79+
let color =
80+
((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);
8081
tmp[y * image.width as usize + x] = color;
8182
}
8283
}

super_native_extensions/rust/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#![allow(dead_code)]
1010
// TODO(knopp): Remove once supported on stable
1111
#![allow(clippy::needless_lifetimes)]
12+
// TODO(knopp): False positive in 1.83.0.
13+
#![allow(clippy::missing_const_for_thread_local)]
1214

1315
use std::ffi::c_void;
1416

0 commit comments

Comments
 (0)