typos: init and run in ci #150
Annotations
5 warnings
The following actions uses Node.js version which is deprecated and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
src/session.rs#L818
[clippy] reported by reviewdog 🐶
warning: deref which would be done by auto-deref
--> src/session.rs:818:55
|
818 | let body = match serde_json::from_str(&*body)? {
| ^^^^^^ help: try: `&body`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
Raw Output:
src/session.rs:818:55:w:warning: deref which would be done by auto-deref
--> src/session.rs:818:55
|
818 | let body = match serde_json::from_str(&*body)? {
| ^^^^^^ help: try: `&body`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
__END__
|
src/session.rs#L894
[clippy] reported by reviewdog 🐶
warning: match can be simplified with `.unwrap_or_default()`
--> src/session.rs:894:31
|
894 | let message = match body.remove("message") {
| _______________________________^
895 | | Some(Json::String(x)) => x,
896 | | _ => String::new(),
897 | | };
| |_________________^ help: replace it with: `body.remove("message").unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
= note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
Raw Output:
src/session.rs:894:31:w:warning: match can be simplified with `.unwrap_or_default()`
--> src/session.rs:894:31
|
894 | let message = match body.remove("message") {
| _______________________________^
895 | | Some(Json::String(x)) => x,
896 | | _ => String::new(),
897 | | };
| |_________________^ help: replace it with: `body.remove("message").unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
= note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
__END__
|
src/key.rs#L212
[clippy] reported by reviewdog 🐶
warning: taken reference of right operand
--> src/key.rs:212:9
|
212 | String::new() + &self + rhs
| ^^^^^^^^^^^^^^^^-----
| |
| help: use the right value directly: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `#[warn(clippy::op_ref)]` on by default
Raw Output:
src/key.rs:212:9:w:warning: taken reference of right operand
--> src/key.rs:212:9
|
212 | String::new() + &self + rhs
| ^^^^^^^^^^^^^^^^-----
| |
| help: use the right value directly: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `#[warn(clippy::op_ref)]` on by default
__END__
|
src/key.rs#L212
[clippy] reported by reviewdog 🐶
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/key.rs:212:25
|
212 | String::new() + &self + rhs
| ^^^^^ help: change this to: `self`
|
= 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
Raw Output:
src/key.rs:212:25:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/key.rs:212:25
|
212 | String::new() + &self + rhs
| ^^^^^ help: change this to: `self`
|
= 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
__END__
|
The logs for this run have expired and are no longer available.
Loading