Skip to content

Fix build.rs.

Fix build.rs. #27

Triggered via push October 25, 2023 06:46
Status Failure
Total duration 2m 10s
Artifacts

check.yml

on: push
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
clippy
Clippy had exited with the 101 exit code
this `if` statement can be collapsed: build.rs#L156
warning: this `if` statement can be collapsed --> build.rs:156:17 | 156 | / if idx != 0 && idx < function_list.len() - 1 { 157 | | if name == function_list[idx - 1].name && name != function_list[idx + 1].name { 158 | | indented = false; 159 | | } 160 | | } | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if help: collapse nested if block | 156 ~ if idx != 0 && idx < function_list.len() - 1 && name == function_list[idx - 1].name && name != function_list[idx + 1].name { 157 + indented = false; 158 + } |
this `if` statement can be collapsed: build.rs#L138
warning: this `if` statement can be collapsed --> build.rs:138:17 | 138 | / if idx < function_list.len() - 1 { 139 | | if name == function_list[idx + 1].name && !indented { 140 | | writeln!(writer, "## {prefix}`{}`", name.to_owned()) 141 | | .expect("Cannot write to {doc_file}"); 142 | | indented = true; 143 | | } 144 | | } | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if = note: `#[warn(clippy::collapsible_if)]` on by default help: collapse nested if block | 138 ~ if idx < function_list.len() - 1 && name == function_list[idx + 1].name && !indented { 139 + writeln!(writer, "## {prefix}`{}`", name.to_owned()) 140 + .expect("Cannot write to {doc_file}"); 141 + indented = true; 142 + } |
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/