chiark / gitweb /
at-otter: Reorder functions in chronological order
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 22:57:24 +0000 (23:57 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 22:57:24 +0000 (23:57 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs

index 2e0a2247bc4b4f3339d82ec44de2816713fb0eb2..e37c6beee2d163ab6db3493ebbaf2db843eff344 100644 (file)
@@ -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)]