Multiple fixes jammy #104
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-bluetooth/src/bluetooth.rs#L121
warning: variants `SetPairable` and `SetDiscoverable` are never constructed
--> cosmic-applet-bluetooth/src/bluetooth.rs:121:5
|
119 | pub enum BluerRequest {
| ------------ variants in this enum
120 | SetBluetoothEnabled(bool),
121 | SetPairable(bool),
| ^^^^^^^^^^^
122 | SetDiscoverable(bool),
| ^^^^^^^^^^^^^^^
|
= note: `BluerRequest` 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-bluetooth/src/bluetooth.rs#L188
warning: non-canonical implementation of `partial_cmp` on an `Ord` type
--> cosmic-applet-bluetooth/src/bluetooth.rs:188:1
|
188 | / impl PartialOrd for BluerDevice {
189 | | fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
| | _______________________________________________________________________-
190 | || match self.status.cmp(&other.status) {
191 | || std::cmp::Ordering::Equal => {
192 | || Some(self.name.to_lowercase().cmp(&other.name.to_lowercase()))
... ||
195 | || }
196 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
197 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
= note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-audio/src/mpris_subscription.rs#L168
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> cosmic-applet-audio/src/mpris_subscription.rs:168:81
|
168 | let media_players = mpris2_zbus::media_player::MediaPlayer::new_all(&conn)
| ^^^^^ help: change this to: `conn`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
Run actions-rs-plus/clippy-check@v2:
cosmic-applet-audio/src/mpris_subscription.rs#L227
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> cosmic-applet-audio/src/mpris_subscription.rs:227:87
|
227 | let players = mpris2_zbus::media_player::MediaPlayer::new_all(&conn)
| ^^^^^ help: change this to: `conn`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
The logs for this run have expired and are no longer available.
Loading