chiark / gitweb /
wip report token revelations nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 Nov 2020 23:45:33 +0000 (23:45 +0000)
committerIan 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

index cfa151d2d1616850d47d84c389d50afdc7ce0540..294d338b9f5d3e6fb8fe2580226ff1ad7bcd11d3 100644 (file)
@@ -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!(