Fix new warnings
Browse files at this commitaf6485cd8c85665b15ef8d2c812da17604ca4e32Parent: f32a25e10 changed files +7 -13
- src/dbus/gnome_shell_screenshot.rs +0 -1
- src/dbus/mod.rs +0 -1
- src/dbus/mutter_screen_cast.rs +0 -1
- src/handlers/mod.rs +0 -1
- src/input.rs +1 -2
- src/layout/focus_ring.rs +1 -1
- src/layout/mod.rs +2 -2
- src/main.rs +1 -1
- src/niri.rs +1 -2
- src/pw_utils.rs +1 -1
src/dbus/gnome_shell_screenshot.rsmodified+0 -1
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | use std::path::PathBuf; |
| 2 | 2 | |
| 3 | -use smithay::reexports::calloop; | |
| 4 | 3 | use zbus::dbus_interface; |
| 5 | 4 | use zbus::fdo::{self, RequestNameFlags}; |
| 6 | 5 |
src/dbus/mod.rsmodified+0 -1
| @@ -1,4 +1,3 @@ | ||
| 1 | -use smithay::reexports::calloop; | |
| 2 | 1 | use zbus::blocking::Connection; |
| 3 | 2 | use zbus::Interface; |
| 4 | 3 |
src/dbus/mutter_screen_cast.rsmodified+0 -1
| @@ -5,7 +5,6 @@ use std::sync::{Arc, Mutex}; | ||
| 5 | 5 | |
| 6 | 6 | use serde::Deserialize; |
| 7 | 7 | use smithay::output::Output; |
| 8 | -use smithay::reexports::calloop; | |
| 9 | 8 | use zbus::fdo::RequestNameFlags; |
| 10 | 9 | use zbus::zvariant::{DeserializeDict, OwnedObjectPath, SerializeDict, Type, Value}; |
| 11 | 10 | use zbus::{dbus_interface, fdo, InterfaceRef, ObjectServer, SignalContext}; |
src/handlers/mod.rsmodified+0 -1
| @@ -14,7 +14,6 @@ use smithay::desktop::{PopupKind, PopupManager}; | ||
| 14 | 14 | use smithay::input::pointer::{CursorIcon, CursorImageStatus, PointerHandle}; |
| 15 | 15 | use smithay::input::{keyboard, Seat, SeatHandler, SeatState}; |
| 16 | 16 | use smithay::output::Output; |
| 17 | -use smithay::reexports::input; | |
| 18 | 17 | use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel; |
| 19 | 18 | use smithay::reexports::wayland_server::protocol::wl_data_source::WlDataSource; |
| 20 | 19 | use smithay::reexports::wayland_server::protocol::wl_output::WlOutput; |
src/input.rsmodified+1 -2
| @@ -17,7 +17,6 @@ use smithay::input::pointer::{ | ||
| 17 | 17 | GesturePinchBeginEvent, GesturePinchEndEvent, GesturePinchUpdateEvent, GestureSwipeBeginEvent, |
| 18 | 18 | GestureSwipeEndEvent, GestureSwipeUpdateEvent, MotionEvent, RelativeMotionEvent, |
| 19 | 19 | }; |
| 20 | -use smithay::reexports::input; | |
| 21 | 20 | use smithay::utils::{Logical, Point, SERIAL_COUNTER}; |
| 22 | 21 | use smithay::wayland::pointer_constraints::{with_pointer_constraint, PointerConstraint}; |
| 23 | 22 | use smithay::wayland::tablet_manager::{TabletDescriptor, TabletSeatTrait}; |
| @@ -1639,7 +1638,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input:: | ||
| 1639 | 1638 | |
| 1640 | 1639 | #[cfg(test)] |
| 1641 | 1640 | mod tests { |
| 1642 | - use niri_config::{Action, Bind, Binds, Key, Modifiers}; | |
| 1641 | + use niri_config::{Bind, Key}; | |
| 1643 | 1642 | |
| 1644 | 1643 | use super::*; |
| 1645 | 1644 |
src/layout/focus_ring.rsmodified+1 -1
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | use std::iter::zip; |
| 2 | 2 | |
| 3 | 3 | use arrayvec::ArrayVec; |
| 4 | -use niri_config::{self, GradientRelativeTo}; | |
| 4 | +use niri_config::GradientRelativeTo; | |
| 5 | 5 | use smithay::backend::renderer::element::solid::{SolidColorBuffer, SolidColorRenderElement}; |
| 6 | 6 | use smithay::backend::renderer::element::Kind; |
| 7 | 7 | use smithay::utils::{Logical, Point, Rectangle, Scale, Size}; |
src/layout/mod.rsmodified+2 -2
| @@ -34,7 +34,7 @@ use std::mem; | ||
| 34 | 34 | use std::rc::Rc; |
| 35 | 35 | use std::time::Duration; |
| 36 | 36 | |
| 37 | -use niri_config::{self, CenterFocusedColumn, Config, Struts}; | |
| 37 | +use niri_config::{CenterFocusedColumn, Config, Struts}; | |
| 38 | 38 | use niri_ipc::SizeChange; |
| 39 | 39 | use smithay::backend::renderer::element::solid::SolidColorRenderElement; |
| 40 | 40 | use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement; |
| @@ -885,7 +885,7 @@ impl<W: LayoutElement> Layout<W> { | ||
| 885 | 885 | } |
| 886 | 886 | |
| 887 | 887 | let col = &ws.columns[ws.active_column_idx]; |
| 888 | - Some((&col.tiles[col.active_tile_idx].window(), &mon.output)) | |
| 888 | + Some((col.tiles[col.active_tile_idx].window(), &mon.output)) | |
| 889 | 889 | } |
| 890 | 890 | |
| 891 | 891 | pub fn windows_for_output(&self, output: &Output) -> impl Iterator<Item = &W> + '_ { |
src/main.rsmodified+1 -1
| @@ -21,7 +21,7 @@ use niri::utils::{cause_panic, version, IS_SYSTEMD_SERVICE}; | ||
| 21 | 21 | use niri_config::Config; |
| 22 | 22 | use portable_atomic::Ordering; |
| 23 | 23 | use sd_notify::NotifyState; |
| 24 | -use smithay::reexports::calloop::{self, EventLoop}; | |
| 24 | +use smithay::reexports::calloop::EventLoop; | |
| 25 | 25 | use smithay::reexports::wayland_server::Display; |
| 26 | 26 | use tracing_subscriber::EnvFilter; |
| 27 | 27 |
src/niri.rsmodified+1 -2
| @@ -41,9 +41,8 @@ use smithay::output::{self, Output}; | ||
| 41 | 41 | use smithay::reexports::calloop::generic::Generic; |
| 42 | 42 | use smithay::reexports::calloop::timer::{TimeoutAction, Timer}; |
| 43 | 43 | use smithay::reexports::calloop::{ |
| 44 | - self, Idle, Interest, LoopHandle, LoopSignal, Mode, PostAction, RegistrationToken, | |
| 44 | + Idle, Interest, LoopHandle, LoopSignal, Mode, PostAction, RegistrationToken, | |
| 45 | 45 | }; |
| 46 | -use smithay::reexports::input; | |
| 47 | 46 | use smithay::reexports::wayland_protocols::ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1; |
| 48 | 47 | use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel::WmCapabilities; |
| 49 | 48 | use smithay::reexports::wayland_protocols_misc::server_decoration as _server_decoration; |
src/pw_utils.rsmodified+1 -1
| @@ -29,7 +29,7 @@ use smithay::backend::allocator::Fourcc; | ||
| 29 | 29 | use smithay::backend::drm::DrmDeviceFd; |
| 30 | 30 | use smithay::output::Output; |
| 31 | 31 | use smithay::reexports::calloop::generic::Generic; |
| 32 | -use smithay::reexports::calloop::{self, Interest, LoopHandle, Mode, PostAction}; | |
| 32 | +use smithay::reexports::calloop::{Interest, LoopHandle, Mode, PostAction}; | |
| 33 | 33 | use smithay::reexports::gbm::Modifier; |
| 34 | 34 | use smithay::utils::{Physical, Size}; |
| 35 | 35 | use zbus::SignalContext; |