From 0a2070e9ff1834253123265984d1b1110478bf76 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 May 2022 21:50:15 +0100 Subject: [PATCH] Switch to deriving Deref Signed-off-by: Ian Jackson --- src/mgmtchannel.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index cb51d553..880a0dce 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -194,13 +194,12 @@ impl IoTryClone for UnixStream { } -#[derive(Debug)] +#[derive(Debug,Deref,DerefMut)] pub struct MgmtChannelForGame { - pub chan: ClientMgmtChannel, + #[deref] #[deref_mut] pub chan: ClientMgmtChannel, pub game: InstanceName, pub how: MgmtGameUpdateMode, } -deref_to_field_mut!{MgmtChannelForGame, ClientMgmtChannel, chan} impl MgmtChannelForGame { #[throws(AE)] -- 2.30.2