Skip to content

Commit ed2dc53

Browse files
authored
Merge pull request #85 from daxpedda/bitflags-v2
Bump `bitflags` to v2
2 parents 741e633 + 74f510a commit ed2dc53

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

android-activity/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ndk-sys = "0.4"
3131
ndk-context = "0.1"
3232
android-properties = "0.2"
3333
num_enum = "0.6"
34-
bitflags = "1.3"
34+
bitflags = "2.0"
3535
libc = "0.2"
3636

3737
[build-dependencies]

android-activity/src/input.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub enum Source {
3636
}
3737

3838
bitflags! {
39+
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3940
struct SourceFlags: u32 {
4041
const CLASS_MASK = 0x000000ff;
4142

android-activity/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ pub use activity_impl::AndroidAppWaker;
275275
bitflags! {
276276
/// Flags for [`AndroidApp::set_window_flags`]
277277
/// as per the [android.view.WindowManager.LayoutParams Java API](https://developer.android.com/reference/android/view/WindowManager.LayoutParams)
278+
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
278279
pub struct WindowManagerFlags: u32 {
279280
/// As long as this window is visible to the user, allow the lock
280281
/// screen to activate while the screen is on. This can be used

0 commit comments

Comments
 (0)