From 0b249aec5fec2821de975c32332f8059124826df Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 3 May 2021 23:57:24 +0100 Subject: [PATCH] at-otter: Reorder functions in chronological order Signed-off-by: Ian Jackson --- apitest/at-otter.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)] -- 2.30.2