chore: Rust 2024 and update dependencies

This commit is contained in:
Vukašin Vojinović 2025-09-10 14:18:51 +02:00 committed by Ian Douglas Scott
parent 05c9af1b95
commit a939335b9e
23 changed files with 941 additions and 722 deletions

View file

@ -2,14 +2,14 @@
use cosmic::{
iced::{
Length, Rectangle, Size, Vector,
advanced::{
Clipboard, Layout, Shell, Widget,
layout::{self},
mouse, overlay, renderer,
widget::{tree, Operation, Tree},
Clipboard, Layout, Shell, Widget,
widget::{Operation, Tree, tree},
},
event::{self, Event},
Length, Rectangle, Size, Vector,
},
iced_core::Renderer,
};

View file

@ -1,13 +1,12 @@
//! Show one surface, sized to match the size of another (invisible) widget
use cosmic::iced::{
Length, Rectangle, Size,
advanced::{
layout, mouse, renderer,
Clipboard, Layout, Shell, Widget, layout, mouse, renderer,
widget::{Operation, Tree},
Clipboard, Layout, Shell, Widget,
},
event::{self, Event},
Length, Rectangle, Size,
};
use std::marker::PhantomData;

View file

@ -1,11 +1,10 @@
use cosmic::iced::{
Length, Rectangle, Size, Vector,
advanced::{
layout, mouse, overlay, renderer,
widget::{tree, Id, Operation, Tree},
Clipboard, Layout, Shell, Widget,
Clipboard, Layout, Shell, Widget, layout, mouse, overlay, renderer,
widget::{Id, Operation, Tree, tree},
},
event::{self, Event},
Length, Rectangle, Size, Vector,
};
use std::marker::PhantomData;

View file

@ -1,11 +1,10 @@
use cosmic::iced::{
Length, Rectangle, Size, Vector,
advanced::{
layout, mouse, overlay, renderer,
widget::{tree, Id, Operation, Tree},
Clipboard, Layout, Shell, Widget,
Clipboard, Layout, Shell, Widget, layout, mouse, overlay, renderer,
widget::{Id, Operation, Tree, tree},
},
event::{self, Event},
Length, Rectangle, Size, Vector,
};
use std::marker::PhantomData;

View file

@ -1,14 +1,14 @@
// This widget defines it's cross axis size as the `index`th child's size
use cosmic::iced::{
Length, Point, Rectangle, Size,
advanced::{
Clipboard, Layout, Shell, Widget,
layout::{self, flex::Axis},
mouse, renderer,
widget::{Operation, Tree},
Clipboard, Layout, Shell, Widget,
},
event::{self, Event},
Length, Point, Rectangle, Size,
};
use std::marker::PhantomData;

View file

@ -1,12 +1,12 @@
use cosmic::iced::{
Length, Rectangle, Size, Vector,
advanced::{
Clipboard, Layout, Shell, Widget,
layout::{self, flex::Axis},
mouse, renderer,
widget::{Operation, Tree},
Clipboard, Layout, Shell, Widget,
},
event::{self, Event},
Length, Rectangle, Size, Vector,
};
use std::marker::PhantomData;

View file

@ -1,5 +1,5 @@
use aliasable::vec::AliasableVec;
use cosmic::iced::{advanced::layout::flex::Axis, Length, Point, Rectangle, Size};
use cosmic::iced::{Length, Point, Rectangle, Size, advanced::layout::flex::Axis};
use std::marker::PhantomData;
use super::{LayoutToplevel, ToplevelLayout};

View file

@ -1,8 +1,8 @@
use cosmic::iced::{advanced::layout::flex::Axis, Length};
use cosmic::iced::{Length, advanced::layout::flex::Axis};
use super::{
axis_toplevel_layout::{AxisPoint, AxisRectangle, AxisSize, AxisToplevelLayout},
LayoutToplevel,
axis_toplevel_layout::{AxisPoint, AxisRectangle, AxisSize, AxisToplevelLayout},
};
pub(crate) struct RowColToplevelLayout {

View file

@ -1,9 +1,9 @@
use cosmic::iced::{advanced::layout::flex::Axis, Length};
use cosmic::iced::{Length, advanced::layout::flex::Axis};
use super::{
LayoutToplevel,
axis_toplevel_layout::{AxisRectangle, AxisSize, AxisToplevelLayout},
row_col_toplevel_layout::RowColToplevelLayout,
LayoutToplevel,
};
pub(crate) struct TwoRowColToplevelLayout(RowColToplevelLayout);

View file

@ -2,13 +2,12 @@
//! takes the same space but does not draw.
use cosmic::iced::{
Length, Rectangle, Size,
advanced::{
layout, mouse, renderer,
Clipboard, Layout, Shell, Widget, layout, mouse, renderer,
widget::{Operation, Tree},
Clipboard, Layout, Shell, Widget,
},
event::{self, Event},
Length, Rectangle, Size,
};
use std::marker::PhantomData;

View file

@ -2,15 +2,15 @@
// Gives each child widget a maximum size on main axis of total/n
use cosmic::iced::{
Length, Point, Rectangle, Size,
advanced::{
Clipboard, Layout, Shell, Widget,
layout::{self, flex::Axis},
mouse, renderer,
widget::{Operation, Tree},
Clipboard, Layout, Shell, Widget,
},
core::clipboard::DndDestinationRectangles,
event::{self, Event},
Length, Point, Rectangle, Size,
};
use std::marker::PhantomData;