From: Ian Jackson Date: Mon, 17 May 2021 17:22:50 +0000 (+0100) Subject: apitest: at-bundles: Use UsualCtx X-Git-Tag: otter-0.6.0~177 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b70cfc6d7b29497b070fdf6c31cfa52d9cd57b1b;p=otter.git apitest: at-bundles: Use UsualCtx Signed-off-by: Ian Jackson --- diff --git a/apitest/at-bundles.rs b/apitest/at-bundles.rs index 516ab88b..3fd37786 100644 --- a/apitest/at-bundles.rs +++ b/apitest/at-bundles.rs @@ -4,13 +4,7 @@ use crate::*; -type Setup = Rc>; - -#[allow(dead_code)] -struct Ctx { - opts: Opts, - su_rc: Setup, -} +type Ctx = UsualCtx; impl Ctx { } @@ -21,10 +15,5 @@ fn tests(_c: Ctx) { #[throws(Explode)] pub fn main() { - let (opts, _instance, su) = setup_core( - &[module_path!()], - )?; - - let su_rc = Rc::new(RefCell::new(su)); - tests(Ctx { opts, su_rc })?; + tests(Ctx::setup()?)?; }