aboutsummaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-02-22 14:04:18 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-02-22 14:04:18 +0400
commitaf6485cd8c85665b15ef8d2c812da17604ca4e32 (patch)
tree25342f9f4da55b891b1e996ed99ead4dba07a662 /src/layout
parentf32a25eefefa23a0849a8f3c2710bcfd4fd8d5a0 (diff)
downloadniri-af6485cd8c85665b15ef8d2c812da17604ca4e32.tar.gz
niri-af6485cd8c85665b15ef8d2c812da17604ca4e32.tar.bz2
niri-af6485cd8c85665b15ef8d2c812da17604ca4e32.zip
Fix new warnings
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/focus_ring.rs2
-rw-r--r--src/layout/mod.rs4
2 files changed, 3 insertions, 3 deletions
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<W: LayoutElement> Layout<W> {
}
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<Item = &W> + '_ {