Skip to content

Simple lock: Add endpoints that breaks farm #3692

Simple lock: Add endpoints that breaks farm

Simple lock: Add endpoints that breaks farm #3692

Triggered via pull request January 22, 2024 17:20
Status Success
Total duration 5m 10s
Artifacts 2

actions.yml

on: pull_request
Contracts  /  Wasm tests
5m 2s
Contracts / Wasm tests
Contracts  /  Rust tests
2m 5s
Contracts / Rust tests
Contracts  /  Clippy linter check
50s
Contracts / Clippy linter check
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
[clippy] locked-asset/simple-lock/src/proxy_farm.rs#L300: locked-asset/simple-lock/src/proxy_farm.rs#L300
warning: returning the result of a `let` binding from a block --> locked-asset/simple-lock/src/proxy_farm.rs:321:9 | 300 | / let remove_liquidity_result = self.remove_liquidity_locked_token_common( 301 | | exit_farm_result.initial_farming_tokens, 302 | | first_token_min_amount_out, 303 | | second_token_min_amont_out, 304 | | ); | |__________- unnecessary `let` binding ... 321 | remove_liquidity_result | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 300 ~ 301 | ... 316 | // (lp_proxy_token_payment, exit_farm_result.reward_tokens).into() 317 ~ self.remove_liquidity_locked_token_common( 318 + exit_farm_result.initial_farming_tokens, 319 + first_token_min_amount_out, 320 + second_token_min_amont_out, 321 + ) |
[clippy] locked-asset/simple-lock/src/proxy_farm.rs#L300: locked-asset/simple-lock/src/proxy_farm.rs#L300
warning: returning the result of a `let` binding from a block --> locked-asset/simple-lock/src/proxy_farm.rs:321:9 | 300 | / let remove_liquidity_result = self.remove_liquidity_locked_token_common( 301 | | exit_farm_result.initial_farming_tokens, 302 | | first_token_min_amount_out, 303 | | second_token_min_amont_out, 304 | | ); | |__________- unnecessary `let` binding ... 321 | remove_liquidity_result | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 300 ~ 301 | ... 316 | // (lp_proxy_token_payment, exit_farm_result.reward_tokens).into() 317 ~ self.remove_liquidity_locked_token_common( 318 + exit_farm_result.initial_farming_tokens, 319 + first_token_min_amount_out, 320 + second_token_min_amont_out, 321 + ) |

Artifacts

Produced during runtime
Name Size
report Expired
44.3 KB
report-markdown Expired
2.14 KB