From: Ian Jackson Date: Sat, 31 Oct 2020 12:12:29 +0000 (+0000) Subject: wip new accounts - demonstrates bad error message X-Git-Tag: otter-0.2.0~579 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ef04af3df22813569180445ba1e2c7c5f25c4276;p=otter.git wip new accounts - demonstrates bad error message Signed-off-by: Ian Jackson --- diff --git a/src/global.rs b/src/global.rs index c585586e..96004ea9 100644 --- a/src/global.rs +++ b/src/global.rs @@ -424,7 +424,7 @@ impl Display for InstanceName { // ---------- Player and token functionality ---------- -impl InstanceGuard<'_> { +impl<'ig> InstanceGuard<'ig> { /// caller is responsible for logging; threading it through /// proves the caller has a log entry. #[throws(MgmtError)] @@ -579,7 +579,7 @@ impl InstanceGuard<'_> { } #[throws(InternalError)] - pub fn invalidate_tokens(&mut self, player: PlayerId) { + pub fn invalidate_tokens(&'ig mut self, player: PlayerId) { let old_tokens = TokenRegistry { tr: self.tokens_players.tr.clone(), id: self.tokens_players.id,