chore: update to Rust 2024 edition
This commit is contained in:
parent
c3fafd3910
commit
2b7b4cba56
71 changed files with 254 additions and 292 deletions
|
|
@ -1,26 +1,18 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use std::cell::LazyCell;
|
||||
|
||||
use cosmic::{
|
||||
app,
|
||||
Element, Task, app,
|
||||
applet::{menu_button, padded_control},
|
||||
cctk::wayland_protocols::xdg::shell::client::xdg_positioner::Gravity,
|
||||
cosmic_theme::Spacing,
|
||||
iced::{
|
||||
self,
|
||||
platform_specific::{
|
||||
runtime::wayland::subsurface,
|
||||
shell::commands::popup::{destroy_popup, get_popup},
|
||||
},
|
||||
self, Alignment, Length,
|
||||
platform_specific::shell::commands::popup::{destroy_popup, get_popup},
|
||||
widget::{self, column, row},
|
||||
window, Alignment, Length,
|
||||
window,
|
||||
},
|
||||
iced_runtime::core::layout::Limits,
|
||||
surface, theme,
|
||||
widget::{autosize, button, divider, icon, layer_container::layer_container, text, Space},
|
||||
Element, Task,
|
||||
widget::{Space, button, divider, icon, text},
|
||||
};
|
||||
use std::sync::LazyLock;
|
||||
|
||||
|
|
@ -126,7 +118,7 @@ impl cosmic::Application for Power {
|
|||
let new_id = window::Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
|
||||
let mut popup_settings = self.core.applet.get_popup_settings(
|
||||
let popup_settings = self.core.applet.get_popup_settings(
|
||||
self.core.main_window_id().unwrap(),
|
||||
new_id,
|
||||
None,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue