Fix warnings and remove dbg!

This commit is contained in:
Ian Douglas Scott 2025-02-10 12:04:20 -08:00
parent ca5db9cc8e
commit 52bbc6c083
3 changed files with 1 additions and 3 deletions

View file

@ -185,7 +185,7 @@ impl App {
fn workspaces_for_output<'a>( fn workspaces_for_output<'a>(
&'a self, &'a self,
output: &'a wl_output::WlOutput, output: &'a wl_output::WlOutput,
) -> impl Iterator<Item = &Workspace> + 'a { ) -> impl Iterator<Item = &'a Workspace> + 'a {
self.workspaces self.workspaces
.iter() .iter()
.filter(|w| w.outputs.contains(output)) .filter(|w| w.outputs.contains(output))

View file

@ -65,7 +65,6 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for Toplevels<'_, Msg> {
.zip(tree.children.iter_mut()) .zip(tree.children.iter_mut())
.zip(assigned_rects) .zip(assigned_rects)
.map(|((child, tree), assigned_rect)| { .map(|((child, tree), assigned_rect)| {
dbg!(assigned_rect);
let child_limits = layout::Limits::new(Size::ZERO, assigned_rect.size()); let child_limits = layout::Limits::new(Size::ZERO, assigned_rect.size());
let layout = child.as_widget().layout(tree, renderer, &child_limits); let layout = child.as_widget().layout(tree, renderer, &child_limits);

View file

@ -1,5 +1,4 @@
use cosmic::iced::{advanced::layout::flex::Axis, Length}; use cosmic::iced::{advanced::layout::flex::Axis, Length};
use std::marker::PhantomData;
use super::{ use super::{
axis_toplevel_layout::{AxisPoint, AxisRectangle, AxisSize, AxisToplevelLayout}, axis_toplevel_layout::{AxisPoint, AxisRectangle, AxisSize, AxisToplevelLayout},