Skip to content

Add check to ensure generics for sorts are correct #767

Add check to ensure generics for sorts are correct

Add check to ensure generics for sorts are correct #767

Triggered via pull request November 5, 2024 21:50
Status Success
Total duration 49s
Artifacts

gh-pages.yml

on: pull_request
Build and Deploy Website
42s
Build and Deploy Website
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Build and Deploy Website
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build and Deploy Website
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, peaceiris/[email protected], Swatinem/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L2040
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:2040:17 | 2040 | return Err(genv.sess().emit_err(err))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L2026
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:2026:17 | 2026 | return Err(genv.sess().emit_err(err))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L2016
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:2016:17 | 2016 | return Err(emit_prim_sort_generics_error(genv, path, "Map", 2))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L2009
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:2009:17 | 2009 | return Err(emit_prim_sort_generics_error(genv, path, "Set", 1))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L2000
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:2000:17 | 2000 | return Err(genv.sess().emit_err(err))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L1989
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:1989:17 | 1989 | return Err(genv.sess().emit_err(err))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L1978
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:1978:17 | 1978 | return Err(emit_prim_sort_generics_error(genv, path, "real", 0))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L1972
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:1972:17 | 1972 | return Err(emit_prim_sort_generics_error(genv, path, "bool", 0))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
unneeded `return` statement with `?` operator: crates/flux-fhir-analysis/src/conv/mod.rs#L1966
warning: unneeded `return` statement with `?` operator --> crates/flux-fhir-analysis/src/conv/mod.rs:1966:17 | 1966 | return Err(emit_prim_sort_generics_error(genv, path, "int", 0))?; | ^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark = note: `#[warn(clippy::needless_return_with_question_mark)]` on by default