Skip to content

Merge pull request #342 from alphaville/hotfix/341-tcp-server-warning #420

Merge pull request #342 from alphaville/hotfix/341-tcp-server-warning

Merge pull request #342 from alphaville/hotfix/341-tcp-server-warning #420

Triggered via push October 15, 2024 20:52
Status Success
Total duration 15s
Artifacts

rustfmt.yml

on: push
Rustfmt
6s
Rustfmt
Fit to window
Zoom out
Zoom in

Annotations

16 warnings
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, 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/checkout@v2, actions-rs/toolchain@v1, 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/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
doc list item without indentation: src/core/panoc/panoc_cache.rs#L161
warning: doc list item without indentation --> src/core/panoc/panoc_cache.rs:161:9 | 161 | /// are satisfied. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `#[warn(clippy::doc_lazy_continuation)]` on by default help: indent this line | 161 | /// are satisfied. | +++
usage of a legacy numeric constant: src/core/panoc/panoc_cache.rs#L75
warning: usage of a legacy numeric constant --> src/core/panoc/panoc_cache.rs:75:29 | 75 | norm_gamma_fpr: std::f64::INFINITY, | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 75 | norm_gamma_fpr: f64::INFINITY, | ~~~~~~~~~~~~~
usage of a legacy numeric constant: src/core/fbs/fbs_cache.rs#L46
warning: usage of a legacy numeric constant --> src/core/fbs/fbs_cache.rs:46:23 | 46 | norm_fpr: std::f64::INFINITY, | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 46 | norm_fpr: f64::INFINITY, | ~~~~~~~~~~~~~
this function has too many arguments (9/7): src/alm/alm_problem.rs#L135
warning: this function has too many arguments (9/7) --> src/alm/alm_problem.rs:135:5 | 135 | / pub fn new( 136 | | constraints: ConstraintsType, 137 | | alm_set_c: Option<AlmSetC>, 138 | | alm_set_y: Option<LagrangeSetY>, ... | 144 | | n2: usize, 145 | | ) -> Self { | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
empty doc comment: src/alm/alm_optimizer_status.rs#L22
warning: empty doc comment --> src/alm/alm_optimizer_status.rs:22:5 | 22 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs = note: `#[warn(clippy::empty_docs)]` on by default
usage of a legacy numeric constant: src/alm/alm_optimizer.rs#L735
warning: usage of a legacy numeric constant --> src/alm/alm_optimizer.rs:735:71 | 735 | .unwrap_or_else(|| std::time::Duration::from_secs(std::u64::MAX)), | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 735 | .unwrap_or_else(|| std::time::Duration::from_secs(u64::MAX)), | ~~~~~~~~
usage of a legacy numeric constant: src/alm/alm_optimizer.rs#L16
warning: usage of a legacy numeric constant --> src/alm/alm_optimizer.rs:16:28 | 16 | const SMALL_EPSILON: f64 = std::f64::EPSILON; | ^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 16 | const SMALL_EPSILON: f64 = f64::EPSILON; | ~~~~~~~~~~~~
this function has too many arguments (8/7): src/alm/alm_factory.rs#L158
warning: this function has too many arguments (8/7) --> src/alm/alm_factory.rs:158:5 | 158 | / pub fn new( 159 | | f: Cost, 160 | | df: CostGradient, 161 | | mapping_f1: Option<MappingF1>, ... | 166 | | n2: usize, 167 | | ) -> Self { | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
usage of a legacy numeric constant: src/alm/alm_cache.rs#L82
warning: usage of a legacy numeric constant --> src/alm/alm_cache.rs:82:27 | 82 | f2_norm_plus: std::f64::INFINITY, | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 82 | f2_norm_plus: f64::INFINITY, | ~~~~~~~~~~~~~
usage of a legacy numeric constant: src/alm/alm_cache.rs#L80
warning: usage of a legacy numeric constant --> src/alm/alm_cache.rs:80:32 | 80 | delta_y_norm_plus: std::f64::INFINITY, | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default help: use the associated constant instead | 80 | delta_y_norm_plus: f64::INFINITY, | ~~~~~~~~~~~~~