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
Description
This issue is raised when a unit value is passed to a function call without using the unit literal: (). If this is intentional, extract the argument into a separate expression and replace it with (). Otherwise, consider revisiting this function call.
Bad practice
`fn foo<T: Debug>(t: T) {}
let v = vec![1].extend(&[2, 3]);
foo(v); // v is () here, and not [1, 2, 3]
Recommened:
`fn foo<T: Debug>(t: T) {}
let v = vec![1].extend(&[2, 3]);
foo(v); // v is () here, and not `[1, 2, 3]``
Description
This issue is raised when a unit value is passed to a function call without using the unit literal: (). If this is intentional, extract the argument into a separate expression and replace it with (). Otherwise, consider revisiting this function call.
Bad practice
`fn foo<T: Debug>(t: T) {}
let v = vec![1].extend(&[2, 3]);
foo(v); //
v
is()
here, and not[1, 2, 3]
Recommened:
`fn foo<T: Debug>(t: T) {}
let v = vec![1].extend(&[2, 3]);
foo(v); //
v
is()
here, and not `[1, 2, 3]``The argument(s) to Ok contain the unit-type
arbitrator/wasm-libraries/user-test/src/program.rs
The argument(s) to Ok contain the unit-type
arbitrator/wasm-libraries/user-test/src/program.rs
The argument(s) to Ok contain the unit-type
arbitrator/wasm-libraries/user-host/src/program.rs
The argument(s) to Ok contain the unit-type
arbitrator/wasm-libraries/user-host/src/program.rs
The argument(s) to update contain the unit-type
arbitrator/prover/src/machine.rs
}
The argument(s) to evm_stack::StackExecutor::new_with_precompiles contain the unit-type
arbitrator/prover/fuzz/fuzz_targets/osp.rs
}
fn test_proof(
The text was updated successfully, but these errors were encountered: