You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solve clippy warnings correctly: (now I used prefix _ for these varibales) error: parameter is only used in recursion
error: parameter is only used in recursion
--> translator/eth/src/bytecode/hir/ir.rs:150:27
|
150 | pub fn resolve(&self, ir: &Hir, ctx: &Context) -> Option<U256> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ir`
|
= note: `-D clippy::only-used-in-recursion` implied by `-D warnings`
note: parameter used here
--> translator/eth/src/bytecode/hir/ir.rs:155:30
|
155 | expr.resolve(ir, ctx)
| ^^
...
164 | let arg = arg.resolve(ir, ctx)?;
| ^^
...
168 | let arg1 = arg1.resolve(ir, ctx)?;
| ^^
169 | let arg2 = arg2.resolve(ir, ctx)?;
| ^^
...
173 | let arg1 = arg1.resolve(ir, ctx)?;
| ^^
174 | let arg2 = arg2.resolve(ir, ctx)?;
| ^^
175 | let arg3 = arg3.resolve(ir, ctx)?;
| ^^
...
179 | _Expr::Copy(expr) => expr.resolve(ir, ctx),
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
error: parameter is only used in recursion
--> translator/mv/src/mv_ir/crop.rs:549:5
|
549 | last_handle_index: Option<StructHandleIndex>,
| ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_handle_index`
|
= note: `-D clippy::only-used-in-recursion` implied by `-D warnings`
note: parameter used here
--> translator/mv/src/mv_ir/crop.rs:575:62
|
575 | change_signature(sign, handle_index_transaction, last_handle_index)
| ^^^^^^^^^^^^^^^^^
...
579 | change_signature(sign, handle_index_transaction, last_handle_index)
| ^^^^^^^^^^^^^^^^^
...
583 | change_signature(sign, handle_index_transaction, last_handle_index)
| ^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
The text was updated successfully, but these errors were encountered:
Solve clippy warnings correctly: (now I used prefix _ for these varibales)
error: parameter is only used in recursion
The text was updated successfully, but these errors were encountered: