diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e403b651..70772a38 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.63" \ No newline at end of file +channel = "1.65" \ No newline at end of file diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index d716944f..731b4f89 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -267,7 +267,7 @@ impl TilingLayout { pub fn unmap_output(&mut self, output: &Output) { if let Some(src) = self.trees.remove(output) { // TODO: expects last remaining output - let (output, dst) = self.trees.iter_mut().next().unwrap(); + let Some((output, dst)) = self.trees.iter_mut().next() else { return; }; let orientation = match output.output.geometry().size { x if x.w >= x.h => Orientation::Horizontal, _ => Orientation::Vertical,