From: Ian Jackson Date: Sun, 1 Nov 2020 21:48:10 +0000 (+0000) Subject: wip errors from introducing accounts X-Git-Tag: otter-0.2.0~571 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=266c2198b6ea7c9541377d449018c0b0baedf6d8;p=otter.git wip errors from introducing accounts Signed-off-by: Ian Jackson --- 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()?) } }