diff --git a/tx-parser/src/lib.rs b/tx-parser/src/lib.rs index 1fc96375..92e29543 100644 --- a/tx-parser/src/lib.rs +++ b/tx-parser/src/lib.rs @@ -37,7 +37,7 @@ fn fn_parser(f: fn(I) -> ParseResult, err: &'static str) -> TxParser def_value_satisfy_parser_fn!(Tx, integer, i64, Value::as_integer); fn value_to_namespaced_keyword(val: &Value) -> Option { - val.as_namespaced_keyword().map(|x| x.clone()) + val.as_namespaced_keyword().cloned() } def_value_satisfy_parser_fn!(Tx, keyword, NamespacedKeyword, value_to_namespaced_keyword);