This repository has been archived by the owner on May 21, 2024. It is now read-only.
Added lustre integation test #1338
rust.yml
on: pull_request
Check
27s
Test Suite
48s
Rustfmt
45s
Clippy
29s
coverage
56s
Annotations
14 errors and 24 warnings
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L184
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:184:22
|
184 | let mode_clone = mode.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L174
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:174:22
|
174 | let mode_clone = mode.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L165
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:165:22
|
165 | let mode_clone = mode.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L156
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:156:22
|
156 | let mode_clone = mode.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L143
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:143:20
|
143 | .with_mode(mode.clone())
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L126
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:126:20
|
126 | .with_mode(mode.clone())
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L114
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:114:20
|
114 | .with_mode(mode.clone())
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L102
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:102:20
|
102 | .with_mode(mode.clone())
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `CommandMode` which implements the `Copy` trait:
src/lib.rs#L90
error: using `clone` on type `CommandMode` which implements the `Copy` trait
--> src/lib.rs:90:20
|
90 | .with_mode(mode.clone())
| ^^^^^^^^^^^^ help: try dereferencing it: `*mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
|
the borrowed expression implements the required traits:
src/utils.rs#L71
error: the borrowed expression implements the required traits
--> src/utils.rs:71:55
|
71 | let mut file = OpenOptions::new().read(true).open(&pb)?;
| ^^^ help: change this to: `pb`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
|
file opened with `create`, but `truncate` behavior not defined:
src/utils.rs#L65
error: file opened with `create`, but `truncate` behavior not defined
--> src/utils.rs:65:51
|
65 | let mut file = OpenOptions::new().write(true).create(true).open(pb)?;
| ^^^^^^^^^^^^- help: add: `.truncate(true)`
|
= help: if you intend to overwrite an existing file entirely, call `.truncate(true)`
= help: if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`
= help: alternatively, use `.append(true)` to append to the file instead of overwriting it
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options
= note: `-D clippy::suspicious-open-options` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::suspicious_open_options)]`
|
used `unwrap()` on a `Result` value:
src/utils.rs#L64
error: used `unwrap()` on a `Result` value
--> src/utils.rs:64:18
|
64 | let buffer = serde_json::to_string(cmd_output).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
= note: requested on the command line with `-D clippy::unwrap-used`
|
Clippy
Clippy had exited with the 101 exit code
|
coverage
Process completed with exit code 1.
|
Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Check
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
Check
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/
|
Check
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/
|
Check
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/
|
Check
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/
|
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, 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/
|
Clippy
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/
|
Clippy
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/
|
Clippy
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/
|
Clippy
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
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: 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 `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/
|
Test Suite
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test Suite
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
Test Suite
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/
|
Test Suite
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/
|
Test Suite
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/
|
Test Suite
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/
|