Refund fixes #118
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (4)
bridge-proxy/src/bridge-proxy.rs|79 col 26| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:26
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^^^ help: change this to: token_id
|
= 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
bridge-proxy/src/bridge-proxy.rs|79 col 40| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:40
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^ help: change this to: amount
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
bridge-proxy/src/bridge-proxy.rs|79 col 26| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:26
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^^^ help: change this to: token_id
|
= 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
bridge-proxy/src/bridge-proxy.rs|79 col 40| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:40
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^ help: change this to: amount
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Filtered Findings (5)
bridged-tokens-wrapper/src/lib.rs|212 col 50| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridged-tokens-wrapper/src/lib.rs:212:50
|
212 | .chain_specific_to_universal_mapping(&requested_token)
| ^^^^^^^^^^^^^^^^ help: change this to: requested_token
|
= 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
bridged-tokens-wrapper/src/lib.rs|212 col 50| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridged-tokens-wrapper/src/lib.rs:212:50
|
212 | .chain_specific_to_universal_mapping(&requested_token)
| ^^^^^^^^^^^^^^^^ help: change this to: requested_token
|
= 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
bridged-tokens-wrapper/src/lib.rs|218 col 67| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridged-tokens-wrapper/src/lib.rs:218:67
|
218 | self.require_tokens_have_set_decimals_num(&payment_token, &requested_token);
| ^^^^^^^^^^^^^^^^ help: change this to: requested_token
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
bridged-tokens-wrapper/src/lib.rs|218 col 67| warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridged-tokens-wrapper/src/lib.rs:218:67
|
218 | self.require_tokens_have_set_decimals_num(&payment_token, &requested_token);
| ^^^^^^^^^^^^^^^^ help: change this to: requested_token
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs|4 col 59| error[E0432]: unresolved import bridge_proxy::esdt_safe_proxy
--> multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs:4:59
|
4 | bridge_proxy_contract_proxy, config::ProxyTrait as _, esdt_safe_proxy, ProxyTrait as _,
| ^^^^^^^^^^^^^^^ no esdt_safe_proxy
in the root
|
= help: consider importing this module instead:
multi_transfer_esdt::esdt_safe_proxy
Annotations
Check warning on line 79 in bridge-proxy/src/bridge-proxy.rs
github-actions / clippy
[clippy] bridge-proxy/src/bridge-proxy.rs#L79
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:26
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^^^ help: change this to: `token_id`
|
= 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
bridge-proxy/src/bridge-proxy.rs:79:26:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:26
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^^^ help: change this to: `token_id`
|
= 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 79 in bridge-proxy/src/bridge-proxy.rs
github-actions / clippy
[clippy] bridge-proxy/src/bridge-proxy.rs#L79
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:40
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^ help: change this to: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw output
bridge-proxy/src/bridge-proxy.rs:79:40:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:40
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^ help: change this to: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
__END__
Check warning on line 79 in bridge-proxy/src/bridge-proxy.rs
github-actions / clippy
[clippy] bridge-proxy/src/bridge-proxy.rs#L79
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:26
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^^^ help: change this to: `token_id`
|
= 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
bridge-proxy/src/bridge-proxy.rs:79:26:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:26
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^^^ help: change this to: `token_id`
|
= 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 79 in bridge-proxy/src/bridge-proxy.rs
github-actions / clippy
[clippy] bridge-proxy/src/bridge-proxy.rs#L79
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:40
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^ help: change this to: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw output
bridge-proxy/src/bridge-proxy.rs:79:40:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> bridge-proxy/src/bridge-proxy.rs:79:40
|
79 | .single_esdt(&token_id, 0, &amount)
| ^^^^^^^ help: change this to: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
__END__