From: Ian Jackson Date: Mon, 3 May 2021 22:57:24 +0000 (+0100) Subject: at-otter: Reorder functions in chronological order X-Git-Tag: otter-0.6.0~419 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0b249aec5fec2821de975c32332f8059124826df;p=otter.git at-otter: Reorder functions in chronological order Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 2e0a2247..e37c6bee 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -691,6 +691,14 @@ impl Ctx { } } + #[throws(Explode)] + fn put_back(&mut self) { + // Put things back for the ad-hoc human tester + let su = self.su(); + prepare_game(&su.ds, &self.prctx, TABLE)?; + su.ds.setup_static_users(&mut *su.mgmt_conn.borrow_mut(), default())?; + } + #[throws(Explode)] fn bundles(&mut self) { let bundle_file = self.su().ds.example_bundle(); @@ -703,14 +711,6 @@ impl Ctx { let st = Command::new("cmp").args(&[&bundle_file, "00000.zip"]).status()?; if ! st.success() { panic!("cmp failed {}", st) } } - - #[throws(Explode)] - fn put_back(&mut self) { - // Put things back for the ad-hoc human tester - let su = self.su(); - prepare_game(&su.ds, &self.prctx, TABLE)?; - su.ds.setup_static_users(&mut *su.mgmt_conn.borrow_mut(), default())?; - } } #[throws(Explode)]