chiark / gitweb /
wip new accounts - demonstrates bad error message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 31 Oct 2020 12:12:29 +0000 (12:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 31 Oct 2020 12:12:29 +0000 (12:12 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/global.rs

index c585586e965d913879edf21e65668abea96d7598..96004ea9f4e2438c32b5642a58bb12459f8de3dd 100644 (file)
@@ -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,