diff --git a/src/filters/select/eval/mod.rs b/src/filters/select/eval/mod.rs index 2fc2bea4..c5704547 100644 --- a/src/filters/select/eval/mod.rs +++ b/src/filters/select/eval/mod.rs @@ -510,8 +510,7 @@ fn iter_tx_datums(tx: &ParsedTx) -> impl Iterator { let a = tx .outputs .iter() - .map(|x| &x.datum) - .flatten() + .flat_map(|x| &x.datum) .map(|x| x.hash.as_ref()); a diff --git a/src/filters/wasm_plugin.rs b/src/filters/wasm_plugin.rs index 886c7853..210cbd53 100644 --- a/src/filters/wasm_plugin.rs +++ b/src/filters/wasm_plugin.rs @@ -43,7 +43,7 @@ impl Stage { let output = match output { serde_json::Value::Null => vec![], serde_json::Value::Array(x) => x.into_iter().map(Record::GenericJson).collect(), - x @ _ => vec![Record::GenericJson(x)], + x => vec![Record::GenericJson(x)], }; Ok(output)