From 266c2198b6ea7c9541377d449018c0b0baedf6d8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 1 Nov 2020 21:48:10 +0000 Subject: [PATCH] wip errors from introducing accounts Signed-off-by: Ian Jackson --- src/global.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global.rs b/src/global.rs index b729ccc3..a544705d 100644 --- a/src/global.rs +++ b/src/global.rs @@ -273,8 +273,8 @@ impl InstanceRef { impl Unauthorised { #[throws(InstanceLockError)] - pub fn lock(&self) -> Unauthorised, A> { - let must_not_escape = self.by(Authorisation::authorise_any()); + pub fn lock<'r>(&'r self) -> Unauthorised, A> { + let must_not_escape = self.by_ref(Authorisation::authorise_any()); Unauthorised::of(must_not_escape.lock()?) } } -- 2.30.2