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:
e196f05
)
at: Generalise PuSynch<T>
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Mar 2021 16:59:06 +0000
(16:59 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Mar 2021 16:59:06 +0000
(16:59 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs
patch
|
blob
|
history
diff --git
a/apitest/at-otter.rs
b/apitest/at-otter.rs
index 58cb17599e1569ac93f4f0ab5b5e57005f1ece55..bf5d2033d105ab1e5bcc42e1b0a7580ff6eccd00 100644
(file)
--- a/
apitest/at-otter.rs
+++ b/
apitest/at-otter.rs
@@
-448,8
+448,8
@@
impl<PI:Idx> PieceSpecForOp for PuUp<'_, PI> {
#[derive(Debug)]
/// Synchronise after op but before any ungrab.
-pub struct PuSynch<
'pcs, PI:Idx>(PuUp<'pcs, PI>
);
-impl<PI:Idx> PieceSpecForOp for PuSynch<
'_,PI
> {
+pub struct PuSynch<
T>(T
);
+impl<PI:Idx> PieceSpecForOp for PuSynch<
PuUp<'_,PI>
> {
type PI = PI;
fn id(&self) -> &str { self.0.id() }
fn for_update(&mut self) -> Option<&mut PieceInfo<JsV>> {