chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ac6ed9
)
wip errors from introducing accounts
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 Nov 2020 21:48:10 +0000
(21:48 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 Nov 2020 21:48:10 +0000
(21:48 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/global.rs
patch
|
blob
|
history
diff --git
a/src/global.rs
b/src/global.rs
index b729ccc3b09c232ea71ba1e1ac649f946cd20eee..a544705d72421211420e1aca087e88bbbb50c7d9 100644
(file)
--- a/
src/global.rs
+++ b/
src/global.rs
@@
-273,8
+273,8
@@
impl InstanceRef {
impl<A> Unauthorised<InstanceRef, A> {
#[throws(InstanceLockError)]
- pub fn lock
(&self) -> Unauthorised<InstanceGuard<'_
>, A> {
- let must_not_escape = self.by(Authorisation::authorise_any());
+ pub fn lock
<'r>(&'r self) -> Unauthorised<InstanceGuard<'r
>, A> {
+ let must_not_escape = self.by
_ref
(Authorisation::authorise_any());
Unauthorised::of(must_not_escape.lock()?)
}
}