Skip to content

Commit

Permalink
Use proper trait from rwh
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap committed Dec 14, 2023
1 parent d72cc36 commit f729859
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion platforms/winit/src/platform_impl/macos.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright 2022 The AccessKit Authors. All rights reserved.
// Licensed under the Apache License, Version 2.0 (found in
// the LICENSE-APACHE file).
#[allow(unused)]
#[cfg(feature = "rwh_05")]
use crate::raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
#[cfg(feature = "rwh_06")]
use crate::raw_window_handle::{HasWindowHandle, RawWindowHandle};

use accesskit::{ActionHandler, TreeUpdate};
Expand Down
4 changes: 3 additions & 1 deletion platforms/winit/src/platform_impl/windows.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright 2022 The AccessKit Authors. All rights reserved.
// Licensed under the Apache License, Version 2.0 (found in
// the LICENSE-APACHE file).
#[allow(unused)]
#[cfg(feature = "rwh_05")]
use crate::raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
#[cfg(feature = "rwh_06")]
use crate::raw_window_handle::{HasWindowHandle, RawWindowHandle};

use accesskit::{ActionHandler, TreeUpdate};
Expand Down

0 comments on commit f729859

Please sign in to comment.