feat(code): initial configuration options #706
Annotations
6 errors and 3 warnings
Clippy:
cli/src/config/file.rs#L184
error: assigning the result of `Clone::clone()` may be inefficient
--> cli/src/config/file.rs:184:13
|
184 | self.genesis_file = genesis.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.genesis_file.clone_from(genesis)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `-D clippy::assigning-clones` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assigning_clones)]`
|
Clippy:
cli/src/config/file.rs#L188
error: assigning the result of `Clone::clone()` may be inefficient
--> cli/src/config/file.rs:188:13
|
188 | self.test.private_key = args.private_key.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.test.private_key.clone_from(&args.private_key)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
Clippy:
cli/src/config/file.rs#L196
error: assigning the result of `Clone::clone()` may be inefficient
--> cli/src/config/file.rs:196:13
|
196 | self.debug = args.debug.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.debug.clone_from(&args.debug)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
Clippy:
cli/src/config/file.rs#L184
error: assigning the result of `Clone::clone()` may be inefficient
--> cli/src/config/file.rs:184:13
|
184 | self.genesis_file = genesis.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.genesis_file.clone_from(genesis)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `-D clippy::assigning-clones` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assigning_clones)]`
|
Clippy:
cli/src/config/file.rs#L188
error: assigning the result of `Clone::clone()` may be inefficient
--> cli/src/config/file.rs:188:13
|
188 | self.test.private_key = args.private_key.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.test.private_key.clone_from(&args.private_key)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
Clippy:
cli/src/config/file.rs#L196
error: assigning the result of `Clone::clone()` may be inefficient
--> cli/src/config/file.rs:196:13
|
196 | self.debug = args.debug.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.debug.clone_from(&args.debug)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/clippy@master. 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/clippy@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|