chore: update to Rust 2024 edition
This commit is contained in:
parent
c3fafd3910
commit
2b7b4cba56
71 changed files with 254 additions and 292 deletions
|
|
@ -10,7 +10,7 @@ use std::borrow::Cow;
|
|||
|
||||
use crate::localize::localize;
|
||||
use cosmic::{
|
||||
app,
|
||||
Task, app,
|
||||
applet::cosmic_panel_config::PanelAnchor,
|
||||
cctk::{
|
||||
sctk::reexports::calloop, toplevel_info::ToplevelInfo,
|
||||
|
|
@ -18,21 +18,19 @@ use cosmic::{
|
|||
},
|
||||
desktop::fde,
|
||||
iced::{
|
||||
self,
|
||||
self, Length, Limits, Subscription,
|
||||
id::Id as WidgetId,
|
||||
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
||||
widget::text,
|
||||
window::{self},
|
||||
Length, Limits, Subscription,
|
||||
},
|
||||
surface,
|
||||
widget::{autosize::autosize, mouse_area},
|
||||
Task,
|
||||
};
|
||||
|
||||
use cosmic::iced_widget::{Column, Row};
|
||||
|
||||
use cosmic::{widget::tooltip, Element};
|
||||
use cosmic::{Element, widget::tooltip};
|
||||
use std::sync::LazyLock;
|
||||
use wayland_subscription::{
|
||||
ToplevelRequest, ToplevelUpdate, WaylandImage, WaylandRequest, WaylandUpdate,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use i18n_embed::{
|
||||
fluent::{fluent_language_loader, FluentLanguageLoader},
|
||||
DefaultLocalizer, LanguageLoader, Localizer,
|
||||
fluent::{FluentLanguageLoader, fluent_language_loader},
|
||||
};
|
||||
use rust_embed::RustEmbed;
|
||||
use std::sync::LazyLock;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ use cctk::{
|
|||
},
|
||||
toplevel_info::{ToplevelInfoHandler, ToplevelInfoState},
|
||||
toplevel_management::{ToplevelManagerHandler, ToplevelManagerState},
|
||||
wayland_client::{self, protocol::wl_seat::WlSeat, WEnum},
|
||||
wayland_client::{self, WEnum, protocol::wl_seat::WlSeat},
|
||||
};
|
||||
use cosmic::{
|
||||
cctk::{
|
||||
|
|
@ -35,12 +35,12 @@ use cosmic::{
|
|||
},
|
||||
sctk::shm::{Shm, ShmHandler},
|
||||
wayland_client::{
|
||||
Dispatch,
|
||||
protocol::{
|
||||
wl_buffer,
|
||||
wl_shm::{self, WlShm},
|
||||
wl_shm_pool,
|
||||
},
|
||||
Dispatch,
|
||||
},
|
||||
wayland_protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
||||
},
|
||||
|
|
@ -50,9 +50,9 @@ use cosmic_protocols::{
|
|||
toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
|
||||
toplevel_management::v1::client::zcosmic_toplevel_manager_v1,
|
||||
};
|
||||
use futures::{channel::mpsc, SinkExt};
|
||||
use futures::{SinkExt, channel::mpsc};
|
||||
use sctk::registry::{ProvidesRegistryState, RegistryState};
|
||||
use wayland_client::{globals::registry_queue_init, Connection, QueueHandle};
|
||||
use wayland_client::{Connection, QueueHandle, globals::registry_queue_init};
|
||||
|
||||
#[derive(Default)]
|
||||
struct SessionInner {
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use cosmic::{
|
||||
desktop::{fde, IconSourceExt},
|
||||
iced::Limits,
|
||||
iced_core::{layout, overlay, widget::Tree, Border, Layout, Length, Size, Vector},
|
||||
theme::{Button, Container},
|
||||
widget::{button, container, image::Handle, Image, Widget},
|
||||
Element,
|
||||
desktop::{IconSourceExt, fde},
|
||||
iced::Limits,
|
||||
iced_core::{Border, Layout, Length, Size, Vector, layout, overlay, widget::Tree},
|
||||
theme::{Button, Container},
|
||||
widget::{Image, Widget, button, container, image::Handle},
|
||||
};
|
||||
|
||||
use crate::wayland_subscription::WaylandImage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue