Skip to content

Vanilla behavior

Vanilla behavior #730

Triggered via pull request March 18, 2024 03:05
Status Failure
Total duration 1m 25s
Artifacts

rust.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
called `map(..).flatten()` on `Option`: src/inventory/mod.rs#L344
error: called `map(..).flatten()` on `Option` --> src/inventory/mod.rs:344:30 | 344 | ... .map(|slot| inv.read().get_item(slot)) | ________________________^ 345 | | ... .flatten() | |________________________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(|slot| inv.read().get_item(slot))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
called `map(..).flatten()` on `Option`: src/inventory/mod.rs#L341
error: called `map(..).flatten()` on `Option` --> src/inventory/mod.rs:341:22 | 341 | .map(|inv| { | ______________________^ 342 | | inv.read() 343 | | .get_slot(*x, *y) 344 | | .map(|slot| inv.read().get_item(slot)) 345 | | .flatten() 346 | | }) 347 | | .flatten() | |______________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten = note: `-D clippy::map-flatten` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::map_flatten)]` help: try replacing `map` with `and_then` and remove the `.flatten()` | 341 ~ .and_then(|inv| { 342 + inv.read() 343 + .get_slot(*x, *y) 344 + .map(|slot| inv.read().get_item(slot)) 345 + .flatten() 346 + }) |
called `map(..).flatten()` on `Option`: src/inventory/mod.rs#L344
error: called `map(..).flatten()` on `Option` --> src/inventory/mod.rs:344:30 | 344 | ... .map(|slot| inv.read().get_item(slot)) | ________________________^ 345 | | ... .flatten() | |________________________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(|slot| inv.read().get_item(slot))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
called `map(..).flatten()` on `Option`: src/inventory/mod.rs#L341
error: called `map(..).flatten()` on `Option` --> src/inventory/mod.rs:341:22 | 341 | .map(|inv| { | ______________________^ 342 | | inv.read() 343 | | .get_slot(*x, *y) 344 | | .map(|slot| inv.read().get_item(slot)) 345 | | .flatten() 346 | | }) 347 | | .flatten() | |______________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten = note: `-D clippy::map-flatten` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::map_flatten)]` help: try replacing `map` with `and_then` and remove the `.flatten()` | 341 ~ .and_then(|inv| { 342 + inv.read() 343 + .get_slot(*x, *y) 344 + .map(|slot| inv.read().get_item(slot)) 345 + .flatten() 346 + }) |
ubuntu-latest
Clippy had exited with the 101 exit code
windows-latest
The job was canceled because "ubuntu-latest_leafish_lea" failed.
windows-latest
The operation was canceled.
macos-11
The job was canceled because "ubuntu-latest_leafish_lea" failed.
macos-11
The operation was canceled.
ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions-rs/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/