Implement v0.1.0 #27
ci.yml
on: pull_request
Annotations
1 error and 10 warnings
Rustfmt
Process completed with exit code 1.
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L142
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:142:38
|
142 | let go_version = get_version(&go_path_str)?;
| ^^^^^^^^^^^^ help: change this to: `go_path_str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
unneeded `return` statement:
src/main.rs#L126
warning: unneeded `return` statement
--> src/main.rs:126:15
|
126 | return Ok::<i32, anyhow::Error>(0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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`
|
126 - return Ok::<i32, anyhow::Error>(0);
126 + Ok::<i32, anyhow::Error>(0)
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L92
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:92:23
|
92 | match backup_file(&file_path) {
| ^^^^^^^^^^ help: change this to: `file_path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/utils.rs#L80
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/utils.rs:80:23
|
80 | let url = build_url(&download_url, &path);
| ^^^^^^^^^^^^^ help: change this to: `download_url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/checksum.rs#L23
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/checksum.rs:23:42
|
23 | let md5_url = replace_sql_zip_with_md5(&url)?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
unneeded unit return type:
src/main.rs#L89
warning: unneeded unit return type
--> src/main.rs:89:39
|
89 | fn backup_or_fail(file_path: &PathBuf) -> () {
| ^^^^^^ help: remove the `-> ()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `#[warn(clippy::unused_unit)]` on by default
|
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, 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/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/
|
Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|