Skip to content

fix: parsing derive block #150

fix: parsing derive block

fix: parsing derive block #150

Triggered via pull request September 2, 2024 16:02
Status Failure
Total duration 1m 39s
Artifacts

workflow.yaml

on: pull_request
Matrix: cargo-build
keepsorted
40s
keepsorted
Matrix: cargo-tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 4 warnings
called `map(..).flatten()` on `Option`: src/strategies/rust_derive.rs#L71
error: called `map(..).flatten()` on `Option` --> src/strategies/rust_derive.rs:71:10 | 71 | .map(|start| { | __________^ 72 | | let end = line_without_comment[start..].find(")]")?; 73 | | Some(start + 9..start + end) 74 | | }) 75 | | .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()` | 71 ~ .and_then(|start| { 72 + let end = line_without_comment[start..].find(")]")?; 73 + Some(start + 9..start + end) 74 + }) |
called `map(..).flatten()` on `Option`: src/strategies/rust_derive.rs#L71
error: called `map(..).flatten()` on `Option` --> src/strategies/rust_derive.rs:71:10 | 71 | .map(|start| { | __________^ 72 | | let end = line_without_comment[start..].find(")]")?; 73 | | Some(start + 9..start + end) 74 | | }) 75 | | .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()` | 71 ~ .and_then(|start| { 72 + let end = line_without_comment[start..].find(")]")?; 73 + Some(start + 9..start + end) 74 + }) |
cargo-clippy
Clippy had exited with the 101 exit code
rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
rustfmt
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
cargo-clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
cargo-clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/