mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Rustfmt pass
This commit is contained in:
parent
e02b44629c
commit
6d616640dc
|
@ -1,5 +1,5 @@
|
|||
use std::mem;
|
||||
use crate::{InputCallback, Key, KeyRepeat};
|
||||
use std::mem;
|
||||
|
||||
pub struct KeyHandler {
|
||||
pub key_callback: Option<Box<dyn InputCallback>>,
|
||||
|
|
|
@ -91,7 +91,7 @@ pub trait InputCallback {
|
|||
mod error;
|
||||
pub use self::error::Error;
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
pub use raw_window_handle::HasRawWindowHandle as HasRawWindowHandle;
|
||||
pub use raw_window_handle::HasRawWindowHandle;
|
||||
|
||||
mod key;
|
||||
pub use key::Key;
|
||||
|
|
|
@ -8,12 +8,14 @@
|
|||
// turn off a gazillion warnings about X keysym names
|
||||
#![allow(non_upper_case_globals)]
|
||||
|
||||
use crate::key_handler::KeyHandler;
|
||||
use crate::rate::UpdateRate;
|
||||
use crate::{
|
||||
InputCallback, Key, KeyRepeat, MouseButton, MouseMode, Scale, ScaleMode, WindowOptions,
|
||||
};
|
||||
use x11_dl::keysym::*;
|
||||
use x11_dl::xcursor;
|
||||
use x11_dl::xlib;
|
||||
use crate::key_handler::KeyHandler;
|
||||
use crate::rate::UpdateRate;
|
||||
use crate::{InputCallback, Key, KeyRepeat, MouseButton, MouseMode, Scale, ScaleMode, WindowOptions};
|
||||
|
||||
use crate::error::Error;
|
||||
use crate::Result;
|
||||
|
|
|
@ -7,7 +7,9 @@ use crate::key_handler::KeyHandler;
|
|||
use crate::rate::UpdateRate;
|
||||
use crate::Result;
|
||||
use crate::{CursorStyle, MenuHandle, MenuItem, MenuItemHandle};
|
||||
use crate::{InputCallback, Key, KeyRepeat, MouseButton, MouseMode, Scale, ScaleMode, WindowOptions};
|
||||
use crate::{
|
||||
InputCallback, Key, KeyRepeat, MouseButton, MouseMode, Scale, ScaleMode, WindowOptions,
|
||||
};
|
||||
use crate::{MENU_KEY_ALT, MENU_KEY_CTRL, MENU_KEY_SHIFT, MENU_KEY_WIN};
|
||||
|
||||
use crate::buffer_helper;
|
||||
|
|
Loading…
Reference in a new issue