Fix order of reading optional pair values from elisp.

This commit is contained in:
Tom Alexander 2023-12-30 18:00:26 -05:00
parent 3131f8ac64
commit 4b3fc20c62
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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)?)?;