-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working