Merge pull request #404 from thmasq/master #790
Annotations
21 warnings
associated function `new` is never used:
src/modules/mod.rs#L119
warning: associated function `new` is never used
--> src/modules/mod.rs:119:8
|
118 | impl<W: IsA<Widget>> ModuleParts<W> {
| ----------------------------------- associated function in this implementation
119 | fn new(widget: W, popup: Option<ModulePopupParts>) -> Self {
| ^^^
|
method `client` is never used:
src/modules/mod.rs#L100
warning: method `client` is never used
--> src/modules/mod.rs:100:12
|
92 | / impl<TSend, TReceive> WidgetContext<TSend, TReceive>
93 | | where
94 | | TSend: Clone,
| |_________________- method in this implementation
...
100 | pub fn client<T: ?Sized>(&self) -> Arc<T>
| ^^^^^^
|
constant `ERR_WAYLAND_DATA` is never used:
src/error.rs#L12
warning: constant `ERR_WAYLAND_DATA` is never used
--> src/error.rs:12:11
|
12 | pub const ERR_WAYLAND_DATA: &str = "Failed to get data for Wayland object";
| ^^^^^^^^^^^^^^^^
|
constant `ERR_WRITE_LOCK` is never used:
src/error.rs#L9
warning: constant `ERR_WRITE_LOCK` is never used
--> src/error.rs:9:11
|
9 | pub const ERR_WRITE_LOCK: &str = "Failed to get write lock";
| ^^^^^^^^^^^^^^
|
constant `ERR_READ_LOCK` is never used:
src/error.rs#L8
warning: constant `ERR_READ_LOCK` is never used
--> src/error.rs:8:11
|
8 | pub const ERR_READ_LOCK: &str = "Failed to get read lock";
| ^^^^^^^^^^^^^
|
methods `mode`, `length`, `max_length`, and `truncate_label` are never used:
src/config/truncate.rs#L35
warning: methods `mode`, `length`, `max_length`, and `truncate_label` are never used
--> src/config/truncate.rs:35:14
|
34 | impl TruncateMode {
| ----------------- methods in this implementation
35 | const fn mode(&self) -> EllipsizeMode {
| ^^^^
...
41 | const fn length(&self) -> Option<i32> {
| ^^^^^^
...
48 | const fn max_length(&self) -> Option<i32> {
| ^^^^^^^^^^
...
55 | pub fn truncate_label(&self, label: >k::Label) {
| ^^^^^^^^^^^^^^
|
function `default_false` is never used:
src/config/mod.rs#L172
warning: function `default_false` is never used
--> src/config/mod.rs:172:14
|
172 | pub const fn default_false() -> bool {
| ^^^^^^^^^^^^^
|
method `default_seat` is never used:
src/clients/wayland/wl_seat.rs#L9
warning: method `default_seat` is never used
--> src/clients/wayland/wl_seat.rs:9:19
|
7 | impl Environment {
| ---------------- method in this implementation
8 | /// Gets the default seat.
9 | pub(crate) fn default_seat(&self) -> WlSeat {
| ^^^^^^^^^^^^
|
fields `queue_handle` and `loop_handle` are never read:
src/clients/wayland/mod.rs#L196
warning: fields `queue_handle` and `loop_handle` are never read
--> src/clients/wayland/mod.rs:196:5
|
191 | pub struct Environment {
| ----------- fields in this struct
...
196 | queue_handle: QueueHandle<Self>,
| ^^^^^^^^^^^^
197 | loop_handle: LoopHandle<'static, Self>,
| ^^^^^^^^^^^
|
= note: `Environment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
variable does not need to be mutable:
src/main.rs#L274
warning: variable does not need to be mutable
--> src/main.rs:274:9
|
274 | let mut config = env::var("IRONBAR_CONFIG")
| ----^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `seat`:
src/clients/wayland/wl_seat.rs#L54
warning: unused variable: `seat`
--> src/clients/wayland/wl_seat.rs:54:9
|
54 | seat: WlSeat,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_seat`
|
unused variable: `seat`:
src/clients/wayland/wl_seat.rs#L27
warning: unused variable: `seat`
--> src/clients/wayland/wl_seat.rs:27:9
|
27 | seat: WlSeat,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_seat`
|
unused variable: `qh`:
src/clients/wayland/wl_seat.rs#L26
warning: unused variable: `qh`
--> src/clients/wayland/wl_seat.rs:26:9
|
26 | qh: &QueueHandle<Self>,
| ^^ help: if this is intentional, prefix it with an underscore: `_qh`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `WidgetGeometry`:
src/modules/mod.rs#L16
warning: unused import: `WidgetGeometry`
--> src/modules/mod.rs:16:41
|
16 | use crate::gtk_helpers::{IronbarGtkExt, WidgetGeometry};
| ^^^^^^^^^^^^^^
|
unused import: `self::truncate::TruncateMode`:
src/config/mod.rs#L31
warning: unused import: `self::truncate::TruncateMode`
--> src/config/mod.rs:31:9
|
31 | pub use self::truncate::TruncateMode;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
variant `ToplevelInfo` is never constructed:
src/clients/wayland/mod.rs#L94
warning: variant `ToplevelInfo` is never constructed
--> src/clients/wayland/mod.rs:94:5
|
86 | pub enum Response {
| -------- variant in this enum
...
94 | ToplevelInfo(Option<ToplevelInfo>),
| ^^^^^^^^^^^^
|
= note: `Response` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|