Expand diagnostics and exploratively fix some edge cases

This commit is contained in:
Lucien Greathouse
2019-01-02 15:16:23 -08:00
parent 77c10d14c9
commit ad3999066d
5 changed files with 37 additions and 35 deletions

View File

@@ -3,7 +3,7 @@ use std::{
collections::{HashMap, HashSet},
};
#[derive(Debug)]
#[derive(Debug, Serialize)]
struct PathMapNode<T> {
value: T,
children: HashSet<PathBuf>,
@@ -11,7 +11,7 @@ struct PathMapNode<T> {
/// A map from paths to instance IDs, with a bit of additional data that enables
/// removing a path and all of its child paths from the tree more quickly.
#[derive(Debug)]
#[derive(Debug, Serialize)]
pub struct PathMap<T> {
nodes: HashMap<PathBuf, PathMapNode<T>>,
}