From: Jakob Cornell Date: Sun, 1 Oct 2023 18:41:48 +0000 (-0500) Subject: Fix Rust number parsing worklist ordering bug X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d36cd71e72d7cc129178f0908ab8ca94d0d37d9;p=counting.git Fix Rust number parsing worklist ordering bug --- diff --git a/sharedmodel/src/update_parse.rs b/sharedmodel/src/update_parse.rs index 04495cb..5e3f0c9 100644 --- a/sharedmodel/src/update_parse.rs +++ b/sharedmodel/src/update_parse.rs @@ -56,7 +56,7 @@ pub fn parse_update( } // flatten the update content to plain text - let mut worklist: VecDeque<_> = body.contents().map(WorklistEntry::Node).collect(); + let mut worklist: VecDeque<_> = body.contents().map(WorklistEntry::Node).rev().collect(); let mut out = vec![vec![]]; while let Some(entry) = worklist.pop_back() {