chore: fmt and update deps #36
Annotations
10 warnings
useless use of `vec!`:
src/srun.rs#L283
warning: useless use of `vec!`
--> src/srun.rs:283:29
|
283 | let check_sum = vec![
| _____________________________^
284 | | "",
285 | | &self.username,
286 | | &hmd5,
... |
291 | | ¶m_i,
292 | | ]
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
help: you can use an array directly
|
283 ~ let check_sum = ["",
284 + &self.username,
285 + &hmd5,
286 + &self.acid.to_string(),
287 + &self.client_ip,
288 + &self.n.to_string(),
289 + &self.utype.to_string(),
290 + ¶m_i]
|
|
unneeded `return` statement:
src/srun.rs#L196
warning: unneeded `return` statement
--> src/srun.rs:196:9
|
196 | return Ok(self.client_ip.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
196 - return Ok(self.client_ip.clone());
196 + Ok(self.client_ip.clone())
|
|
field `0` is never read:
src/srun.rs#L440
warning: field `0` is never read
--> src/srun.rs:440:7
|
440 | S(String),
| - ^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
440 | S(()),
| ~~
|
field `0` is never read:
src/srun.rs#L439
warning: field `0` is never read
--> src/srun.rs:439:7
|
439 | I(i32),
| - ^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
439 | I(()),
| ~~
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions-rs/cargo@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/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions-rs/cargo@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/
|
build:
src/srun.rs#L439
field `0` is never read
|
build:
src/srun.rs#L440
field `0` is never read
|
build
`srun` (lib) generated 2 warnings
|
build
`srun` (lib test) generated 2 warnings (2 duplicates)
|