mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-21 00:36:33 +00:00
Clean up Some Clippy Warnings (#478)
* clippy: it is more idiomatic to loop over references to containers instead of using explicit iteration methods * clippy: useless use of `format!` * clippy: if/else is an expression * clippy: use of followed by a function call * clippy: large size difference between variants * clippy: redundant closure * Revert "clippy: large size difference between variants" This reverts commit 7e2e660dd47c9718126d1c45ae1caa632e287a14. * Revert "clippy: it is more idiomatic to loop over references to containers instead of using explicit iteration methods" This reverts commit 5c4804f790fc6a33a7a0f0d2aacdc4b98529b978.
This commit is contained in:
committed by
Alex Crichton
parent
babc2134e1
commit
4cc069bd01
@ -247,7 +247,7 @@ impl<'a> FirstPassRecord<'a> {
|
||||
let js_ret = ret.clone();
|
||||
|
||||
if catch {
|
||||
ret = Some(ret.map_or_else(|| result_ty(unit_ty()), |ret| result_ty(ret)))
|
||||
ret = Some(ret.map_or_else(|| result_ty(unit_ty()), result_ty))
|
||||
}
|
||||
|
||||
let shim = {
|
||||
|
Reference in New Issue
Block a user