From bc70800c095c2753506e9cb0e307b3c5bac114aa Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 May 2022 21:56:19 +0100 Subject: [PATCH] Switch to deriving Deref Signed-off-by: Ian Jackson --- wdriver/wdt-hand.rs | 4 ++-- wdriver/wdt-simple.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wdriver/wdt-hand.rs b/wdriver/wdt-hand.rs index 0ebd10ae..73a15c65 100644 --- a/wdriver/wdt-hand.rs +++ b/wdriver/wdt-hand.rs @@ -4,12 +4,12 @@ use crate::*; +#[derive(Deref)] struct Ctx { - su: Setup, + #[deref] su: Setup, alice: Window, bob: Window, } -deref_to_field!{Ctx, Setup, su} usual_wanted_tests!{Ctx, su} const HAND: &str = "6v1"; diff --git a/wdriver/wdt-simple.rs b/wdriver/wdt-simple.rs index bc3b42c3..ec4a6621 100644 --- a/wdriver/wdt-simple.rs +++ b/wdriver/wdt-simple.rs @@ -4,13 +4,13 @@ use crate::*; +#[derive(Deref)] struct Ctx { - su: Setup, + #[deref] su: Setup, alice: Window, bob: Window, spec: GameSpec, } -deref_to_field!{Ctx, Setup, su} usual_wanted_tests!{Ctx, su} impl Ctx { -- 2.30.2