Add sync feature. #26
Annotations
1 error and 5 warnings
clippy
Clippy had exited with the 101 exit code
|
this `if` statement can be collapsed:
build.rs#L163
warning: this `if` statement can be collapsed
--> build.rs:163:17
|
163 | / if idx != 0 && idx < function_list.len() - 1 {
164 | | if name == function_list[idx - 1].name && name != function_list[idx + 1].name {
165 | | indented = false;
166 | | }
167 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
163 ~ if idx != 0 && idx < function_list.len() - 1 && name == function_list[idx - 1].name && name != function_list[idx + 1].name {
164 + indented = false;
165 + }
|
|
this `if` statement can be collapsed:
build.rs#L145
warning: this `if` statement can be collapsed
--> build.rs:145:17
|
145 | / if idx < function_list.len() - 1 {
146 | | if name == function_list[idx + 1].name && !indented {
147 | | writeln!(writer, "## {prefix}`{}`", name.to_owned())
148 | | .expect("Cannot write to {doc_file}");
149 | | indented = true;
150 | | }
151 | | }
| |_________________^
|
= 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
|
145 ~ if idx < function_list.len() - 1 && name == function_list[idx + 1].name && !indented {
146 + writeln!(writer, "## {prefix}`{}`", name.to_owned())
147 + .expect("Cannot write to {doc_file}");
148 + indented = true;
149 + }
|
|
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/
|
this `if` statement can be collapsed:
build.rs#L163
warning: this `if` statement can be collapsed
--> build.rs:163:17
|
163 | / if idx != 0 && idx < function_list.len() - 1 {
164 | | if name == function_list[idx - 1].name && name != function_list[idx + 1].name {
165 | | indented = false;
166 | | }
167 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
163 ~ if idx != 0 && idx < function_list.len() - 1 && name == function_list[idx - 1].name && name != function_list[idx + 1].name {
164 + indented = false;
165 + }
|
|
this `if` statement can be collapsed:
build.rs#L145
warning: this `if` statement can be collapsed
--> build.rs:145:17
|
145 | / if idx < function_list.len() - 1 {
146 | | if name == function_list[idx + 1].name && !indented {
147 | | writeln!(writer, "## {prefix}`{}`", name.to_owned())
148 | | .expect("Cannot write to {doc_file}");
149 | | indented = true;
150 | | }
151 | | }
| |_________________^
|
= 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
|
145 ~ if idx < function_list.len() - 1 && name == function_list[idx + 1].name && !indented {
146 + writeln!(writer, "## {prefix}`{}`", name.to_owned())
147 + .expect("Cannot write to {doc_file}");
148 + indented = true;
149 + }
|
|