rustfmt fixes

This commit is contained in:
Victor Brekenfeld 2018-12-15 22:01:24 +01:00
parent e5f8c351c7
commit cc5d55f535
7 changed files with 14 additions and 14 deletions

View File

@ -18,16 +18,16 @@ use smithay::{
egl::{BufferAccessError, EGLImages, Format}, egl::{BufferAccessError, EGLImages, Format},
graphics::{gl::GLGraphicsBackend, glium::GliumGraphicsBackend}, graphics::{gl::GLGraphicsBackend, glium::GliumGraphicsBackend},
}, },
reexports::wayland_server::{
protocol::{wl_buffer, wl_surface},
Resource,
},
wayland::{ wayland::{
compositor::{roles::Role, SubsurfaceRole, TraversalAction}, compositor::{roles::Role, SubsurfaceRole, TraversalAction},
data_device::DnDIconRole, data_device::DnDIconRole,
seat::CursorImageRole, seat::CursorImageRole,
shm::with_buffer_contents as shm_buffer_contents, shm::with_buffer_contents as shm_buffer_contents,
}, },
reexports::wayland_server::{
protocol::{wl_buffer, wl_surface},
Resource,
},
}; };
use crate::shaders; use crate::shaders;

View File

@ -17,11 +17,11 @@ use smithay::{
self, Event, InputBackend, InputHandler, KeyState, KeyboardKeyEvent, PointerAxisEvent, self, Event, InputBackend, InputHandler, KeyState, KeyboardKeyEvent, PointerAxisEvent,
PointerButtonEvent, PointerMotionAbsoluteEvent, PointerMotionEvent, PointerButtonEvent, PointerMotionAbsoluteEvent, PointerMotionEvent,
}, },
reexports::wayland_server::protocol::wl_pointer,
wayland::{ wayland::{
seat::{keysyms as xkb, AxisFrame, KeyboardHandle, Keysym, ModifiersState, PointerHandle}, seat::{keysyms as xkb, AxisFrame, KeyboardHandle, Keysym, ModifiersState, PointerHandle},
SERIAL_COUNTER as SCOUNTER, SERIAL_COUNTER as SCOUNTER,
}, },
reexports::wayland_server::protocol::wl_pointer,
}; };
use crate::shell::MyWindowMap; use crate::shell::MyWindowMap;

View File

@ -7,6 +7,10 @@ use std::{
use rand; use rand;
use smithay::{ use smithay::{
reexports::wayland_server::{
protocol::{wl_buffer, wl_callback, wl_shell_surface, wl_surface},
Display, Resource,
},
wayland::{ wayland::{
compositor::{compositor_init, CompositorToken, SurfaceAttributes, SurfaceEvent}, compositor::{compositor_init, CompositorToken, SurfaceAttributes, SurfaceEvent},
data_device::DnDIconRole, data_device::DnDIconRole,
@ -21,10 +25,6 @@ use smithay::{
}, },
}, },
}, },
reexports::wayland_server::{
protocol::{wl_buffer, wl_callback, wl_shell_surface, wl_surface},
Display, Resource,
},
}; };
use crate::window_map::{Kind as SurfaceKind, WindowMap}; use crate::window_map::{Kind as SurfaceKind, WindowMap};

View File

@ -1,6 +1,6 @@
use std::borrow::Cow; use std::borrow::Cow;
use smithay::{wayland::shm::BufferData, reexports::wayland_server::protocol::wl_shm::Format}; use smithay::{reexports::wayland_server::protocol::wl_shm::Format, wayland::shm::BufferData};
use glium::texture::{ClientFormat, RawImage2d}; use glium::texture::{ClientFormat, RawImage2d};

View File

@ -1,4 +1,5 @@
use smithay::{ use smithay::{
reexports::wayland_server::{protocol::wl_surface, Resource},
utils::Rectangle, utils::Rectangle,
wayland::{ wayland::{
compositor::{roles::Role, CompositorToken, SubsurfaceRole, SurfaceAttributes, TraversalAction}, compositor::{roles::Role, CompositorToken, SubsurfaceRole, SurfaceAttributes, TraversalAction},
@ -7,7 +8,6 @@ use smithay::{
xdg::{ToplevelSurface, XdgSurfaceRole}, xdg::{ToplevelSurface, XdgSurfaceRole},
}, },
}, },
reexports::wayland_server::{protocol::wl_surface, Resource},
}; };
pub enum Kind<U, R, SD, D> { pub enum Kind<U, R, SD, D> {

View File

@ -6,13 +6,13 @@ use std::{
use smithay::{ use smithay::{
backend::{egl::EGLGraphicsBackend, graphics::gl::GLGraphicsBackend, input::InputBackend, winit}, backend::{egl::EGLGraphicsBackend, graphics::gl::GLGraphicsBackend, input::InputBackend, winit},
reexports::wayland_server::{calloop::EventLoop, protocol::wl_output, Display},
wayland::{ wayland::{
data_device::{default_action_chooser, init_data_device, set_data_device_focus, DataDeviceEvent}, data_device::{default_action_chooser, init_data_device, set_data_device_focus, DataDeviceEvent},
output::{Mode, Output, PhysicalProperties}, output::{Mode, Output, PhysicalProperties},
seat::{CursorImageStatus, Seat, XkbConfig}, seat::{CursorImageStatus, Seat, XkbConfig},
shm::init_shm_global, shm::init_shm_global,
}, },
reexports::wayland_server::{calloop::EventLoop, protocol::wl_output, Display},
}; };
use slog::Logger; use slog::Logger;

View File

@ -90,13 +90,13 @@
//! the subhandler you provided, or via methods on the [`ShellState`](::wayland::shell::xdg::ShellState) //! the subhandler you provided, or via methods on the [`ShellState`](::wayland::shell::xdg::ShellState)
//! that you are given (in an `Arc<Mutex<_>>`) as return value of the `init` function. //! that you are given (in an `Arc<Mutex<_>>`) as return value of the `init` function.
use crate::utils::Rectangle;
use crate::wayland::compositor::{roles::Role, CompositorToken};
use std::{ use std::{
cell::RefCell, cell::RefCell,
rc::Rc, rc::Rc,
sync::{Arc, Mutex}, sync::{Arc, Mutex},
}; };
use crate::utils::Rectangle;
use crate::wayland::compositor::{roles::Role, CompositorToken};
use wayland_protocols::{ use wayland_protocols::{
unstable::xdg_shell::v6::server::{zxdg_popup_v6, zxdg_shell_v6, zxdg_surface_v6, zxdg_toplevel_v6}, unstable::xdg_shell::v6::server::{zxdg_popup_v6, zxdg_shell_v6, zxdg_surface_v6, zxdg_toplevel_v6},
xdg_shell::server::{xdg_popup, xdg_positioner, xdg_surface, xdg_toplevel, xdg_wm_base}, xdg_shell::server::{xdg_popup, xdg_positioner, xdg_surface, xdg_toplevel, xdg_wm_base},