From: Ian Jackson Date: Wed, 4 May 2022 20:50:15 +0000 (+0100) Subject: Switch to deriving Deref X-Git-Tag: otter-1.1.0~287 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0a2070e9ff1834253123265984d1b1110478bf76;p=otter.git Switch to deriving Deref Signed-off-by: Ian Jackson --- 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)]