From 4b3fc20c62774f42a4e74fa8ea1f3a1e4b959820 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 30 Dec 2023 18:00:26 -0500 Subject: [PATCH] Fix order of reading optional pair values from elisp. --- src/wasm_test/compare.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wasm_test/compare.rs b/src/wasm_test/compare.rs index d4897d9..f93fcbf 100644 --- a/src/wasm_test/compare.rs +++ b/src/wasm_test/compare.rs @@ -520,10 +520,10 @@ fn compare_optional_pair<'e, 's, 'w>( }); } let emacs_optval = emacs - .first() + .get(2) .expect("If-statement proves this will be Some."); let emacs_val = emacs - .get(2) + .first() .expect("If-statement proves this will be Some."); result.extend(compare_json_value(source, emacs_optval, wasm_optval)?)?; result.extend(compare_json_value(source, emacs_val, wasm_val)?)?;