Skip to content

Commit

Permalink
ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Feb 1, 2025
1 parent 26baebf commit dad3448
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions examples/topless.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[allow(
#![allow(
unused_imports,
unused_mut,
unused_variables,
Expand All @@ -8,23 +8,16 @@
)]
use std::error::Error;

#[cfg(windows_platform)]
use winit::application::ApplicationHandler;
#[cfg(windows_platform)]
use winit::event::WindowEvent;
#[cfg(windows_platform)]
use winit::event_loop::{ActiveEventLoop, EventLoop};
#[cfg(windows_platform)]
use winit::window::{Window, WindowAttributes, WindowId};

#[cfg(windows_platform)]
#[path = "util/fill.rs"]
mod fill;
#[cfg(windows_platform)]
#[path = "util/tracing.rs"]
mod tracing;

#[cfg(windows_platform)]
use ::tracing::info;
#[cfg(windows_platform)]
fn main() -> Result<(), Box<dyn Error>> {
Expand Down Expand Up @@ -54,31 +47,24 @@ fn main() -> Result<(), Box<dyn Error>> {
}

/// Application state and event handling.
#[cfg(windows_platform)]
struct Application {
window: Option<Box<dyn Window>>,
}

#[cfg(windows_platform)]
impl Application {
fn new() -> Self {
Self { window: None }
}
}

#[cfg(windows_platform)]
use winit::event::ElementState;
#[cfg(windows_platform)]
use winit::keyboard::Key;
#[cfg(windows_platform)]
use winit::keyboard::ModifiersState;
#[cfg(windows_platform)]
use winit::platform::modifier_supplement::KeyEventExtModifierSupplement;
#[cfg(windows_platform)]
use winit::platform::windows::WindowAttributesExtWindows;
#[cfg(windows_platform)]
use winit::platform::windows::WindowExtWindows;
#[cfg(windows_platform)]
impl ApplicationHandler for Application {
fn can_create_surfaces(&mut self, event_loop: &dyn ActiveEventLoop) {
let window_attributes = WindowAttributes::default()
Expand Down

0 comments on commit dad3448

Please sign in to comment.