Skip to content

Merge pull request #411 from JakeStanger/dependabot/cargo/serde_json-… #306

Merge pull request #411 from JakeStanger/dependabot/cargo/serde_json-…

Merge pull request #411 from JakeStanger/dependabot/cargo/serde_json-… #306

GitHub Actions / clippy succeeded Jan 15, 2024 in 0s

clippy

15 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 15
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 119 in src/modules/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

associated function `new` is never used

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 {
    |        ^^^

Check warning on line 100 in src/modules/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `client` is never used

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>
    |              ^^^^^^

Check warning on line 12 in src/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `ERR_WAYLAND_DATA` is never used

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";
   |           ^^^^^^^^^^^^^^^^

Check warning on line 9 in src/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `ERR_WRITE_LOCK` is never used

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";
  |           ^^^^^^^^^^^^^^

Check warning on line 8 in src/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `ERR_READ_LOCK` is never used

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";
  |           ^^^^^^^^^^^^^

Check warning on line 35 in src/config/truncate.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods `mode`, `length`, `max_length`, and `truncate_label` are never used

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: &gtk::Label) {
   |            ^^^^^^^^^^^^^^

Check warning on line 172 in src/config/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `default_false` is never used

warning: function `default_false` is never used
   --> src/config/mod.rs:172:14
    |
172 | pub const fn default_false() -> bool {
    |              ^^^^^^^^^^^^^

Check warning on line 9 in src/clients/wayland/wl_seat.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `default_seat` is never used

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 {
  |                   ^^^^^^^^^^^^

Check warning on line 193 in src/clients/wayland/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

fields `queue_handle` and `loop_handle` are never read

warning: fields `queue_handle` and `loop_handle` are never read
   --> src/clients/wayland/mod.rs:193:5
    |
188 | pub struct Environment {
    |            ----------- fields in this struct
...
193 |     queue_handle: QueueHandle<Self>,
    |     ^^^^^^^^^^^^
194 |     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

Check warning on line 274 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

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

Check warning on line 54 in src/clients/wayland/wl_seat.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `seat`

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`

Check warning on line 27 in src/clients/wayland/wl_seat.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `seat`

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`

Check warning on line 26 in src/clients/wayland/wl_seat.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `qh`

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

Check warning on line 16 in src/modules/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `WidgetGeometry`

warning: unused import: `WidgetGeometry`
  --> src/modules/mod.rs:16:41
   |
16 | use crate::gtk_helpers::{IronbarGtkExt, WidgetGeometry};
   |                                         ^^^^^^^^^^^^^^

Check warning on line 31 in src/config/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `self::truncate::TruncateMode`

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