i18n: translation update from Hosted Weblate #2475
ci.yml
on: pull_request
formatting
15s
linting
2m 32s
Annotations
10 warnings
|
this `if` statement can be collapsed:
cosmic-applet-bluetooth/src/bluetooth.rs#L100
warning: this `if` statement can be collapsed
--> cosmic-applet-bluetooth/src/bluetooth.rs:100:17
|
100 | / if let Ok(session) = Session::new().await {
101 | | if let Ok(state) = BluerSessionState::new(session).await {
102 | | break state;
103 | | }
104 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
100 ~ if let Ok(session) = Session::new().await
101 ~ && let Ok(state) = BluerSessionState::new(session).await {
102 | break state;
103 ~ }
|
|
|
variant `Surface` is never constructed:
cosmic-applet-bluetooth/src/app.rs#L82
warning: variant `Surface` is never constructed
--> cosmic-applet-bluetooth/src/app.rs:82:5
|
69 | enum Message {
| ------- variant in this enum
...
82 | Surface(surface::Action),
| ^^^^^^^
|
= note: `Message` 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
|
|
unused variable: `req`:
cosmic-applet-bluetooth/src/app.rs#L153
warning: unused variable: `req`
--> cosmic-applet-bluetooth/src/app.rs:153:21
|
153 | req,
| ^^^ help: try ignoring the field: `req: _`
|
= note: `#[warn(unused_variables)]` on by default
|
|
unreachable pattern:
cosmic-applet-bluetooth/src/bluetooth.rs#L151
warning: unreachable pattern
--> cosmic-applet-bluetooth/src/bluetooth.rs:151:21
|
151 | _ => return,
| ^ no value can reach this
|
note: multiple earlier patterns match some of the same values
--> cosmic-applet-bluetooth/src/bluetooth.rs:151:21
|
135 | BluerSessionEvent::ChangesProcessed(state) => {
| ------------------------------------------ matches some of the same values
...
139 | / BluerSessionEvent::RequestResponse {
140 | | req,
141 | | state,
142 | | err_msg,
143 | | } => BluerEvent::RequestResponse {
| |_____________________- matches some of the same values
...
149 | BluerSessionEvent::AgentEvent(e) => BluerEvent::AgentEvent(e),
| -------------------------------- matches some of the same values
150 |
151 | _ => return,
| ^ collectively making this unreachable
= note: `#[warn(unreachable_patterns)]` on by default
|
|
unused import: `mem`:
cosmic-applet-bluetooth/src/bluetooth.rs#L9
warning: unused import: `mem`
--> cosmic-applet-bluetooth/src/bluetooth.rs:9:5
|
9 | mem,
| ^^^
|
|
unused import: `self`:
cosmic-applet-bluetooth/src/app.rs#L17
warning: unused import: `self`
--> cosmic-applet-bluetooth/src/app.rs:17:9
|
17 | self, Alignment, Length, Subscription,
| ^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
|
unused import: `channel::mpsc::TrySendError`:
cosmic-applet-network/src/app.rs#L48
warning: unused import: `channel::mpsc::TrySendError`
--> cosmic-applet-network/src/app.rs:48:26
|
48 | use futures::{StreamExt, channel::mpsc::TrySendError};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
unused imports: `NmState` and `access_point`:
cosmic-applet-network/src/app.rs#L43
warning: unused imports: `NmState` and `access_point`
--> cosmic-applet-network/src/app.rs:43:5
|
43 | access_point,
| ^^^^^^^^^^^^
44 | enums::{ActiveConnectionState, DeviceState, NmConnectivityState, NmState},
| ^^^^^^^
|
|
unused import: `time::Duration`:
cosmic-applet-network/src/app.rs#L18
warning: unused import: `time::Duration`
--> cosmic-applet-network/src/app.rs:18:5
|
18 | time::Duration,
| ^^^^^^^^^^^^^^
|
|
unused import: `active_conns::active_conns_subscription`:
cosmic-applet-network/src/app.rs#L5
warning: unused import: `active_conns::active_conns_subscription`
--> cosmic-applet-network/src/app.rs:5:5
|
5 | active_conns::active_conns_subscription,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|