Skip to content

update to protocol alpha 2 #478

update to protocol alpha 2

update to protocol alpha 2 #478

GitHub Actions / clippy succeeded Jun 22, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

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);
    |                                                           ~~~