From b70cfc6d7b29497b070fdf6c31cfa52d9cd57b1b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 17 May 2021 18:22:50 +0100 Subject: [PATCH] apitest: at-bundles: Use UsualCtx Signed-off-by: Ian Jackson --- apitest/at-bundles.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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()?)?; } -- 2.30.2