Skip to content

Bump anyhow from 1.0.81 to 1.0.82 #416

Bump anyhow from 1.0.81 to 1.0.82

Bump anyhow from 1.0.81 to 1.0.82 #416

GitHub Actions / clippy succeeded Apr 10, 2024 in 1s

clippy

4 warnings

Details

Results

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

Versions

  • rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

Annotations

Check warning on line 137 in src/prom/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `vec!`

warning: useless use of `vec!`
   --> src/prom/metrics.rs:130:9
    |
130 | /         vec![
131 | |             self.round_trip_time.collect(),
132 | |             self.packet_delay_variation.collect(),
133 | |             self.ping_sent.collect(),
...   |
136 | |             self.last_observed_seq.collect(),
137 | |         ]
    | |_________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
help: you can use an array directly
    |
130 ~         [self.round_trip_time.collect(),
131 +             self.packet_delay_variation.collect(),
132 +             self.ping_sent.collect(),
133 +             self.ping_received.collect(),
134 +             self.ping_errors.collect(),
135 +             self.last_observed_seq.collect()]
    |

Check warning on line 125 in src/prom/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `vec!`

warning: useless use of `vec!`
   --> src/prom/metrics.rs:118:9
    |
118 | /         vec![
119 | |             self.round_trip_time.desc(),
120 | |             self.packet_delay_variation.desc(),
121 | |             self.ping_sent.desc(),
...   |
124 | |             self.last_observed_seq.desc(),
125 | |         ]
    | |_________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
    = note: `#[warn(clippy::useless_vec)]` on by default
help: you can use an array directly
    |
118 ~         [self.round_trip_time.desc(),
119 +             self.packet_delay_variation.desc(),
120 +             self.ping_sent.desc(),
121 +             self.ping_received.desc(),
122 +             self.ping_errors.desc(),
123 +             self.last_observed_seq.desc()]
    |

Check warning on line 127 in src/event_stream/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods called `as_*` usually take `self` by reference or `self` by mutable reference

warning: methods called `as_*` usually take `self` by reference or `self` by mutable reference
   --> src/event_stream/mod.rs:127:23
    |
127 |     fn as_eventstream(self) -> io::Result<PendingStream<Self>>;
    |                       ^^^^
    |
    = help: consider choosing a less ambiguous name
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
    = note: `#[warn(clippy::wrong_self_convention)]` on by default

Check warning on line 162 in src/event_stream/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `inner` is never read

warning: field `inner` is never read
   --> src/event_stream/util.rs:162:9
    |
161 |     pub struct Claim {
    |                ----- field in this struct
162 |         inner: OwnedMutexGuard<()>,
    |         ^^^^^
    |
    = note: `Claim` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
    = note: `#[warn(dead_code)]` on by default