From 8d36cd71e72d7cc129178f0908ab8ca94d0d37d9 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 1 Oct 2023 13:41:48 -0500 Subject: [PATCH] Fix Rust number parsing worklist ordering bug --- sharedmodel/src/update_parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.30.2