summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-04-06 01:42:23 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-10 19:40:43 +0300
commitd9a3b03e2b9c18c91dfbd0154fdbd7009a32cf82 (patch)
treea95519e964a475b86b087ed98c8c3bf7dd4e2067
parent6b3c4d57d6282d94b730d195fc69ae0e1f64ae55 (diff)
melib: create new threadnode if it's missing inside rebuild_thread
-rw-r--r--melib/src/mailbox/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/mailbox/thread.rs b/melib/src/mailbox/thread.rs
index 1eb87661..c2b8d5fa 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 */