From: Ian Jackson Date: Sun, 1 May 2022 17:47:23 +0000 (+0100) Subject: apitest: updates: handle RecordedUnpredictable X-Git-Tag: otter-1.1.0~350 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f99d8aad641c4e9800195ff58a6121230b5928de;p=otter.git apitest: updates: handle RecordedUnpredictable Signed-off-by: Ian Jackson --- diff --git a/apitest/atmain.rs b/apitest/atmain.rs index 6a20328d..7dcb0232 100644 --- a/apitest/atmain.rs +++ b/apitest/atmain.rs @@ -453,6 +453,10 @@ pub fn update_update_pieces( let im = v.get("im").unwrap(); p.info.extend(im.as_object().unwrap()); } else if k.starts_with("MoveHist") { + } else if k == "RecordedUnpredictable" { + let p = p.unwrap(); + let ns = v.get("ns").unwrap(); + p.info.extend(ns.as_object().unwrap()); } }