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:
a3620fa
)
hidden: a todo
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 12 Mar 2021 01:17:54 +0000
(
01:17
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 12 Mar 2021 01:21:13 +0000
(
01:21
+0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/updates.rs
patch
|
blob
|
history
diff --git
a/src/updates.rs
b/src/updates.rs
index ca7f9eceaf762d5eee81f7fb1a9e4bae1377dd80..511c95016d7329b5210f4f866bc6df53d645fbaf 100644
(file)
--- a/
src/updates.rs
+++ b/
src/updates.rs
@@
-369,6
+369,7
@@
impl<NS,ZC> PieceUpdateOp<NS,ZC> {
pub fn try_map<NS2, ZC2, E:Error,
F: FnOnce(NS) -> Result<NS2,E>,
G: FnOnce(ZC) -> Result<ZC2,E>
+ // xxx should be a function for mapping pos
> (self, f:F, g:G) -> Result<PieceUpdateOp<NS2,ZC2>,E>
{
use PieceUpdateOp::*;