Skip to content

error: add helper methods

Sign in for the full log view
GitHub Actions / clippy succeeded Jul 27, 2024 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.80.0 (051478957 2024-07-21)
  • cargo 1.80.0 (376290515 2024-07-16)
  • clippy 0.1.80 (0514789 2024-07-21)

Annotations

Check warning on line 632 in src/channel.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

warning: usage of a legacy numeric method
   --> src/channel.rs:632:57
    |
632 |             self.configuration.set_frame_max(FrameSize::max_value());
    |                                                         ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
632 |             self.configuration.set_frame_max(FrameSize::MAX);
    |                                                         ~~~

Check warning on line 621 in src/channel.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

warning: usage of a legacy numeric method
   --> src/channel.rs:621:59
    |
621 |             self.configuration.set_channel_max(ChannelId::max_value());
    |                                                           ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: `-W clippy::legacy-numeric-constants` implied by `-W clippy::all`
    = help: to override `-W clippy::all` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
    |
621 |             self.configuration.set_channel_max(ChannelId::MAX);
    |                                                           ~~~

Check warning on line 7 in src/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `AMQPSoftError`

warning: unused import: `AMQPSoftError`
 --> src/error.rs:7:31
  |
7 |     protocol::{AMQPErrorKind, AMQPSoftError},
  |                               ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default