fix: make all subscriptions resistant to being restarted #102
Annotations
10 warnings
Run actions-rs-plus/clippy-check@v2:
cosmic-app-list/src/app.rs#L14
warning: unused import: `self`
--> cosmic-app-list/src/app.rs:14:29
|
14 | use cosmic::cosmic_config::{self, Config, CosmicConfigEntry};
| ^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Run actions-rs-plus/clippy-check@v2:
cosmic-app-list/src/app.rs#L27
warning: unused import: `cosmic::iced_core::window::Icon`
--> cosmic-app-list/src/app.rs:27:5
|
27 | use cosmic::iced_core::window::Icon;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run actions-rs-plus/clippy-check@v2:
cosmic-app-list/src/app.rs#L55
warning: unused import: `std::borrow::Cow`
--> cosmic-app-list/src/app.rs:55:5
|
55 | use std::borrow::Cow;
| ^^^^^^^^^^^^^^^^
|
Run actions-rs-plus/clippy-check@v2:
cosmic-app-list/src/wayland_subscription.rs#L15
warning: unused imports: `hash::Hash`, `thread::JoinHandle`
--> cosmic-app-list/src/wayland_subscription.rs:15:23
|
15 | use std::{fmt::Debug, hash::Hash, thread::JoinHandle};
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
|
Run actions-rs-plus/clippy-check@v2:
cosmic-app-list/src/wayland_subscription.rs#L102
warning: variant `Exit` is never constructed
--> cosmic-app-list/src/wayland_subscription.rs:102:5
|
99 | pub enum ToplevelRequest {
| --------------- variant in this enum
...
102 | Exit,
| ^^^^
|
= note: `ToplevelRequest` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-notifications/src/main.rs#L8
warning: unused import: `config_subscription`
--> cosmic-applet-notifications/src/main.rs:8:29
|
8 | use cosmic::cosmic_config::{config_subscription, Config, CosmicConfigEntry};
| ^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-notifications/src/subscriptions/notifications.rs#L25
warning: unused variable: `proxy`
--> cosmic-applet-notifications/src/subscriptions/notifications.rs:25:22
|
25 | pub fn notifications(proxy: NotificationsAppletProxy<'static>) -> Subscription<Notification> {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy`
|
= note: `#[warn(unused_variables)]` on by default
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-notifications/src/subscriptions/freedesktop_proxy.rs#L24
warning: this function has too many arguments (9/7)
--> cosmic-applet-notifications/src/subscriptions/freedesktop_proxy.rs:24:1
|
24 | // #[dbus_proxy(
25 | || interface = "org.freedesktop.Notifications",
26 | || default_service = "org.freedesktop.Notifications",
27 | || default_path = "/org/freedesktop/Notifications"
28 | || )]
| ||__- in this procedural macro expansion
... |
49 | | expire_timeout: i32,
50 | | ) -> zbus::Result<u32>;
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
= note: this warning originates in the attribute macro `dbus_proxy` (in Nightly builds, run with -Z macro-backtrace for more info)
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-notifications/src/subscriptions/freedesktop_proxy.rs#L24
warning: this function has too many arguments (9/7)
--> cosmic-applet-notifications/src/subscriptions/freedesktop_proxy.rs:24:1
|
24 | / #[dbus_proxy(
25 | | interface = "org.freedesktop.Notifications",
26 | | default_service = "org.freedesktop.Notifications",
27 | | default_path = "/org/freedesktop/Notifications"
28 | | )]
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `dbus_proxy` (in Nightly builds, run with -Z macro-backtrace for more info)
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-notifications/src/main.rs#L164
warning: useless conversion to the same type: `&str`
--> cosmic-applet-notifications/src/main.rs:164:31
|
164 | .watch_config(cosmic_notifications_config::ID.into())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `cosmic_notifications_config::ID`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
The logs for this run have expired and are no longer available.
Loading