Skip to content

Commit

Permalink
ci: fix remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed May 20, 2024
1 parent c3a9c58 commit 4ac84e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// from a different thread.
info!("Starting to send user event every second");
loop {
let _ = _event_loop_proxy.wake_up();
_event_loop_proxy.wake_up();
std::thread::sleep(std::time::Duration::from_secs(1));
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ mod tests {
x(Resumed);

// Window events.
let with_window_event = |wev| x(WindowEvent { window_id: wid, event: wev });
let with_window_event = |wev| x(Window { window_id: wid, event: wev });

with_window_event(CloseRequested);
with_window_event(Destroyed);
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/macos/app_delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl ApplicationDelegate {
unsafe { RunLoop::get() }.wakeup();
}

fn with_user_app<F: FnOnce(&mut dyn ApplicationHandler, &RootActiveEventLoop) -> ()>(
fn with_user_app<F: FnOnce(&mut dyn ApplicationHandler, &RootActiveEventLoop)>(
&self,
callback: F,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/orbital/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ impl EventLoop {
i += 1;
}

while let Ok(_) = self.user_events_receiver.try_recv() {
while self.user_events_receiver.try_recv().is_ok() {
app.user_wake_up(&self.window_target);
}

Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/windows/drop_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct FileDropHandler {

#[allow(non_snake_case)]
impl FileDropHandler {
pub fn new(window: HWND, send_event: Box<dyn Fn(Event)>) -> FileDropHandler {
pub(crate) fn new(window: HWND, send_event: Box<dyn Fn(Event)>) -> FileDropHandler {
let data = Box::new(FileDropHandlerData {
interface: IDropTarget { lpVtbl: &DROP_TARGET_VTBL as *const IDropTargetVtbl },
refcount: AtomicUsize::new(1),
Expand Down

0 comments on commit 4ac84e5

Please sign in to comment.