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,10 +1,7 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use cosmic::{
|
||||
iced::{self, Subscription},
|
||||
widget::icon,
|
||||
};
|
||||
use cosmic::iced::{self, Subscription};
|
||||
use futures::{FutureExt, StreamExt};
|
||||
use std::collections::HashMap;
|
||||
use zbus::zvariant::{self, OwnedValue};
|
||||
|
|
@ -255,7 +252,7 @@ pub trait DBusMenu {
|
|||
) -> zbus::Result<(u32, Layout)>;
|
||||
|
||||
fn event(&self, id: i32, event_id: &str, data: &OwnedValue, timestamp: u32)
|
||||
-> zbus::Result<()>;
|
||||
-> zbus::Result<()>;
|
||||
|
||||
fn about_to_show(&self, id: i32) -> zbus::Result<bool>;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
// TODO: Both this and server proxy could emit same events, have way to generate stream from either?
|
||||
|
||||
use cosmic::iced::{self, Subscription};
|
||||
use futures::{stream, StreamExt};
|
||||
use futures::{StreamExt, stream};
|
||||
|
||||
use crate::subscriptions::status_notifier_item::StatusNotifierItem;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
use futures::prelude::*;
|
||||
use zbus::{
|
||||
Result,
|
||||
fdo::{DBusProxy, RequestNameFlags, RequestNameReply},
|
||||
message::Header,
|
||||
names::{BusName, UniqueName, WellKnownName},
|
||||
object_server::SignalEmitter,
|
||||
Result,
|
||||
};
|
||||
|
||||
const NAME: WellKnownName =
|
||||
|
|
@ -65,7 +65,7 @@ impl StatusNotifierWatcher {
|
|||
|
||||
#[zbus(signal)]
|
||||
async fn status_notifier_item_registered(ctxt: &SignalEmitter<'_>, service: &str)
|
||||
-> Result<()>;
|
||||
-> Result<()>;
|
||||
|
||||
#[zbus(signal)]
|
||||
async fn status_notifier_item_unregistered(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue