Skip to content

[MEX-580] Add on behalf features for farm SC #4220

[MEX-580] Add on behalf features for farm SC

[MEX-580] Add on behalf features for farm SC #4220

GitHub Actions / clippy failed Nov 3, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (4)

farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs|47 col 57| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57
|
47 | self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
| ^^^^^^^^ help: change this to: payment
|
= 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
farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs|101 col 57| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57
|
101 | self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
| ^^^^^^^^ help: change this to: payment
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs|47 col 57| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57
|
47 | self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
| ^^^^^^^^ help: change this to: payment
|
= 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
farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs|101 col 57| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57
|
101 | self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
| ^^^^^^^^ help: change this to: payment
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Filtered Findings (0)

Annotations

Check warning on line 47 in farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs#L47

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57
   |
47 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
   |                                                         ^^^^^^^^ help: change this to: `payment`
   |
   = 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
farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57
   |
47 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
   |                                                         ^^^^^^^^ help: change this to: `payment`
   |
   = 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__

Check warning on line 101 in farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs#L101

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57
    |
101 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
    |                                                         ^^^^^^^^ help: change this to: `payment`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw output
farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57
    |
101 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
    |                                                         ^^^^^^^^ help: change this to: `payment`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow


__END__

Check warning on line 47 in farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs#L47

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57
   |
47 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
   |                                                         ^^^^^^^^ help: change this to: `payment`
   |
   = 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
farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs:47:57
   |
47 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
   |                                                         ^^^^^^^^ help: change this to: `payment`
   |
   = 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__

Check warning on line 101 in farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs#L101

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57
    |
101 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
    |                                                         ^^^^^^^^ help: change this to: `payment`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw output
farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs:101:57
    |
101 |             self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
    |                                                         ^^^^^^^^ help: change this to: `payment`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow


__END__