Fix build issue, add servePort project option

This commit is contained in:
Lucien Greathouse
2019-01-04 13:40:10 -08:00
parent 9cfeee0577
commit 64e2ef3d3b
4 changed files with 8 additions and 6 deletions

View File

@@ -77,6 +77,7 @@ impl SourceProjectNode {
struct SourceProject {
name: String,
tree: SourceProjectNode,
serve_port: Option<u16>,
}
impl SourceProject {
@@ -86,6 +87,7 @@ impl SourceProject {
Project {
name: self.name,
tree,
serve_port: self.serve_port,
file_location: PathBuf::from(project_file_location),
}
}
@@ -169,6 +171,7 @@ pub struct SyncPointProjectNode {
pub struct Project {
pub name: String,
pub tree: ProjectNode,
pub serve_port: Option<u16>,
pub file_location: PathBuf,
}