chore: use std::syncLazyLock
Also migrates workspace members to Rust 2024.
This commit is contained in:
parent
b72b15d719
commit
ea349aca82
15 changed files with 64 additions and 71 deletions
|
|
@ -4,8 +4,9 @@ use crate::{CosmicConfigEntry, Update};
|
|||
use cosmic_settings_daemon::{Changed, ConfigProxy, CosmicSettingsDaemonProxy};
|
||||
use futures_util::SinkExt;
|
||||
use iced_futures::{
|
||||
futures::{self, future::pending, Stream, StreamExt},
|
||||
stream, Subscription,
|
||||
Subscription,
|
||||
futures::{self, Stream, StreamExt, future::pending},
|
||||
stream,
|
||||
};
|
||||
|
||||
pub async fn settings_daemon_proxy() -> zbus::Result<CosmicSettingsDaemonProxy<'static>> {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
//! Integrations for cosmic-config — the cosmic configuration system.
|
||||
|
||||
use notify::{
|
||||
event::{EventKind, ModifyKind, RenameMode},
|
||||
RecommendedWatcher, Watcher,
|
||||
event::{EventKind, ModifyKind, RenameMode},
|
||||
};
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use serde::{Serialize, de::DeserializeOwned};
|
||||
use std::{
|
||||
fmt, fs,
|
||||
io::Write,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ async fn start_listening<T: 'static + Send + Sync + PartialEq + Clone + CosmicCo
|
|||
state: ConfigState<T>,
|
||||
output: &mut mpsc::Sender<crate::Update<T>>,
|
||||
) -> ConfigState<T> {
|
||||
use iced_futures::futures::{future::pending, StreamExt};
|
||||
use iced_futures::futures::{StreamExt, future::pending};
|
||||
|
||||
match state {
|
||||
ConfigState::Init(config_id, version, is_state) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue