chore: update to Rust 2024 edition
This commit is contained in:
parent
c3fafd3910
commit
2b7b4cba56
71 changed files with 254 additions and 292 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -7,23 +7,23 @@ use chrono::{Datelike, Timelike};
|
|||
use cosmic::iced_futures::stream;
|
||||
use cosmic::widget::Id;
|
||||
use cosmic::{
|
||||
app,
|
||||
Element, Task, app,
|
||||
applet::{cosmic_panel_config::PanelAnchor, menu_button, padded_control},
|
||||
cctk::sctk::reexports::calloop,
|
||||
cosmic_theme::Spacing,
|
||||
iced::{
|
||||
futures::{channel::mpsc, SinkExt, StreamExt, TryFutureExt},
|
||||
Alignment, Length, Rectangle, Subscription,
|
||||
futures::{SinkExt, StreamExt, TryFutureExt, channel::mpsc},
|
||||
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
||||
widget::{column, row, vertical_space},
|
||||
window, Alignment, Length, Rectangle, Subscription,
|
||||
window,
|
||||
},
|
||||
iced_widget::{horizontal_rule, Column},
|
||||
iced_widget::{Column, horizontal_rule},
|
||||
surface, theme,
|
||||
widget::{
|
||||
autosize, button, container, divider, grid, horizontal_space, icon, rectangle_tracker::*,
|
||||
text, Button, Grid, Space,
|
||||
Button, Grid, Space, autosize, button, container, divider, grid, horizontal_space, icon,
|
||||
rectangle_tracker::*, text,
|
||||
},
|
||||
Element, Task,
|
||||
};
|
||||
use logind_zbus::manager::ManagerProxy;
|
||||
use std::sync::LazyLock;
|
||||
|
|
@ -33,18 +33,18 @@ use tokio::{sync::watch, time};
|
|||
use icu::{
|
||||
calendar::DateTime,
|
||||
datetime::{
|
||||
DateTimeFormatter, DateTimeFormatterOptions,
|
||||
options::{
|
||||
components::{self, Bag},
|
||||
preferences,
|
||||
},
|
||||
DateTimeFormatter, DateTimeFormatterOptions,
|
||||
},
|
||||
locid::Locale,
|
||||
};
|
||||
|
||||
use crate::{config::TimeAppletConfig, fl, time::get_calender_first};
|
||||
use cosmic::applet::token::subscription::{
|
||||
activation_token_subscription, TokenRequest, TokenUpdate,
|
||||
TokenRequest, TokenUpdate, activation_token_subscription,
|
||||
};
|
||||
|
||||
static AUTOSIZE_MAIN_ID: LazyLock<Id> = LazyLock::new(|| Id::new("autosize-main"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue