From af6485cd8c85665b15ef8d2c812da17604ca4e32 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 22 Feb 2024 14:04:18 +0400 Subject: Fix new warnings --- src/layout/focus_ring.rs | 2 +- src/layout/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/layout') diff --git a/src/layout/focus_ring.rs b/src/layout/focus_ring.rs index 24013510..f8a70d93 100644 --- a/src/layout/focus_ring.rs +++ b/src/layout/focus_ring.rs @@ -1,7 +1,7 @@ use std::iter::zip; use arrayvec::ArrayVec; -use niri_config::{self, GradientRelativeTo}; +use niri_config::GradientRelativeTo; use smithay::backend::renderer::element::solid::{SolidColorBuffer, SolidColorRenderElement}; use smithay::backend::renderer::element::Kind; use smithay::utils::{Logical, Point, Rectangle, Scale, Size}; diff --git a/src/layout/mod.rs b/src/layout/mod.rs index de43488b..edc0d9de 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -34,7 +34,7 @@ use std::mem; use std::rc::Rc; use std::time::Duration; -use niri_config::{self, CenterFocusedColumn, Config, Struts}; +use niri_config::{CenterFocusedColumn, Config, Struts}; use niri_ipc::SizeChange; use smithay::backend::renderer::element::solid::SolidColorRenderElement; use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement; @@ -885,7 +885,7 @@ impl Layout { } let col = &ws.columns[ws.active_column_idx]; - Some((&col.tiles[col.active_tile_idx].window(), &mon.output)) + Some((col.tiles[col.active_tile_idx].window(), &mon.output)) } pub fn windows_for_output(&self, output: &Output) -> impl Iterator + '_ { -- cgit