Start using multimap correctly for path tracking in RojoTree

This commit is contained in:
Lucien Greathouse
2019-09-09 11:50:58 -07:00
parent 8dbc6ab7d3
commit 618185a52d
4 changed files with 57 additions and 42 deletions

View File

@@ -17,18 +17,6 @@ pub struct InstanceMetadata {
pub source: Option<InstanceSource>,
}
#[derive(Debug, Clone, PartialEq)]
pub enum InstanceSource {
File {
path: PathBuf,
},
ProjectFile {
path: PathBuf,
name: String,
node: ProjectNode,
},
}
impl Default for InstanceMetadata {
fn default() -> Self {
InstanceMetadata {
@@ -37,3 +25,9 @@ impl Default for InstanceMetadata {
}
}
}
#[derive(Debug, Clone, PartialEq)]
pub struct InstanceSource {
pub path: PathBuf,
pub project_node: Option<(String, ProjectNode)>,
}