Add config
command
#762
clippy
8 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 8 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0-nightly (42b1224e9 2023-10-15)
- cargo 1.75.0-nightly (6fa6fdc76 2023-10-10)
- clippy 0.1.75 (42b1224 2023-10-15)
Annotations
Check failure on line 156 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:156:46
|
156 | let farm_dir = PathBuf::from_str(&fd).expect("Invalid farm directory");
| ^^^ help: change this to: `fd`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 149 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:149:46
|
149 | let node_dir = PathBuf::from_str(&n).expect("Invalid node directory");
| ^^ help: change this to: `n`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 143 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:143:56
|
143 | let reward_address = reward_address_parser(&r)?;
| ^^ help: change this to: `r`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 137 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:137:41
|
137 | let farm_size = size_parser(&f)?;
| ^^ help: change this to: `f`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Check failure on line 156 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:156:46
|
156 | let farm_dir = PathBuf::from_str(&fd).expect("Invalid farm directory");
| ^^^ help: change this to: `fd`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 149 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:149:46
|
149 | let node_dir = PathBuf::from_str(&n).expect("Invalid node directory");
| ^^ help: change this to: `n`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 143 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:143:56
|
143 | let reward_address = reward_address_parser(&r)?;
| ^^ help: change this to: `r`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 137 in pulsar/src/commands/config.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> pulsar/src/commands/config.rs:137:41
|
137 | let farm_size = size_parser(&f)?;
| ^^ help: change this to: `f`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`