From d9a3b03e2b9c18c91dfbd0154fdbd7009a32cf82 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sat, 6 Apr 2019 01:42:23 +0300 Subject: [PATCH] melib: create new threadnode if it's missing inside rebuild_thread --- melib/src/mailbox/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melib/src/mailbox/thread.rs b/melib/src/mailbox/thread.rs index 1eb87661e..c2b8d5fa5 100644 --- a/melib/src/mailbox/thread.rs +++ b/melib/src/mailbox/thread.rs @@ -973,7 +973,7 @@ impl Threads { node_build(tree, id, &mut self.thread_nodes, 1, collection); return; } - unreachable!(); + tree.push(ThreadTree::new(id)); } /* Trace path back to root ThreadNode */