Skip to content

Commit

Permalink
Fix missing qualifier on NonNull
Browse files Browse the repository at this point in the history
  • Loading branch information
atlanticaccent committed May 12, 2024
1 parent fea82bb commit d29c568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion druid-shell/src/backend/mac/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ impl WindowHandle {
impl HasWindowHandle for WindowHandle {
fn window_handle(&self) -> Result<raw_window_handle::WindowHandle<'_>, HandleError> {
let nsv = self.nsview.load();
let mut handle = AppKitWindowHandle::new(NonNull::from(&nsv).cast());
let mut handle = AppKitWindowHandle::new(std::ptr::NonNull::from(&nsv).cast());

let handle =
unsafe { raw_window_handle::WindowHandle::borrow_raw(RawWindowHandle::AppKit(handle)) };
Expand Down

0 comments on commit d29c568

Please sign in to comment.