Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Add config command #761

Add config command

Add config command #761

GitHub Actions / clippy failed Jan 31, 2024 in 0s

clippy

4 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 4
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 (42b1224e 2023-10-15)

Annotations

Check failure on line 149 in pulsar/src/commands/config.rs

See this annotation in the file changed.

@github-actions 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 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 142 in pulsar/src/commands/config.rs

See this annotation in the file changed.

@github-actions 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:142:46
    |
142 |             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 136 in pulsar/src/commands/config.rs

See this annotation in the file changed.

@github-actions 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:136:56
    |
136 |             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 130 in pulsar/src/commands/config.rs

See this annotation in the file changed.

@github-actions 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:130:41
    |
130 |             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)]`