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:
7438c5b
)
wip report token revelations nfc
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 13 Nov 2020 23:45:33 +0000
(23:45 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 13 Nov 2020 23:45:33 +0000
(23:45 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/session.rs
patch
|
blob
|
history
diff --git
a/src/session.rs
b/src/session.rs
index cfa151d2d1616850d47d84c389d50afdc7ce0540..294d338b9f5d3e6fb8fe2580226ff1ad7bcd11d3 100644
(file)
--- a/
src/session.rs
+++ b/
src/session.rs
@@
-135,9
+135,10
@@
fn session(form : Json<SessionForm>) -> Result<Template,OE> {
{
let tr = &pr.ipl.tokens_revealed;
let y = tr.len() > 1;
- tr.iter()
+
let l =
tr.iter()
.filter(move |_| y)
- // .sort
+ .collect::<Vec<_>>();
+ l.into_iter()
.map(|(trk,trv)|{
let when = trv.latest;
let html = Html(format!(