Skip to content

fix incorrect comment in with_microsoft_access_token docs #1896

fix incorrect comment in with_microsoft_access_token docs

fix incorrect comment in with_microsoft_access_token docs #1896

GitHub Actions / clippy succeeded Aug 15, 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.82.0-nightly (13a52890d 2024-08-14)
  • cargo 1.82.0-nightly (0d8d22f83 2024-08-08)
  • clippy 0.1.82 (13a5289 2024-08-14)

Annotations

Check warning on line 160 in azalea/src/pathfinder/simulation.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `map(..).flatten()` on `Option`

warning: called `map(..).flatten()` on `Option`
   --> azalea/src/pathfinder/simulation.rs:159:14
    |
159 |               .map(|c| *c)
    |  ______________^
160 | |             .flatten()
    | |______________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(|c| *c)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
    = note: `#[warn(clippy::map_flatten)]` on by default

Check warning on line 150 in azalea-client/src/local_player.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

large size difference between variants

warning: large size difference between variants
   --> azalea-client/src/local_player.rs:141:1
    |
141 | / pub enum HandlePacketError {
142 | |     #[error("{0}")]
143 | |     Poison(String),
    | |     -------------- the second-largest variant contains at least 24 bytes
144 | |     #[error(transparent)]
...   |
149 | |     Send(#[from] mpsc::error::SendError<AzaleaEvent>),
    | |     ------------------------------------------------- the largest variant contains at least 232 bytes
150 | | }
    | |_^ the entire enum is at least 0 bytes
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
    = note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
    |
149 |     Send(#[from] Box<mpsc::error::SendError<AzaleaEvent>>),
    |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~