forked from rojo-rbx/rojo
Apply patch sets by value in preparation for AppliedPatchSet
This commit is contained in:
@@ -105,7 +105,7 @@ pub fn build(options: &BuildOptions) -> Result<(), BuildError> {
|
||||
let patch_set = compute_patch_set(&snapshot, &tree, root_id);
|
||||
|
||||
log::trace!("Applying patch set");
|
||||
apply_patch_set(&mut tree, &patch_set);
|
||||
apply_patch_set(&mut tree, patch_set);
|
||||
|
||||
log::trace!("Opening output file for write");
|
||||
let mut file = BufWriter::new(File::create(&options.output_file)?);
|
||||
|
||||
@@ -68,7 +68,7 @@ pub fn serve(options: &ServeOptions) -> Result<(), ServeError> {
|
||||
.expect("snapshot did not return an instance");
|
||||
|
||||
let patch_set = compute_patch_set(&snapshot, &tree, root_id);
|
||||
apply_patch_set(&mut tree, &patch_set);
|
||||
apply_patch_set(&mut tree, patch_set);
|
||||
|
||||
let session = Arc::new(ServeSession::new(imfs, tree, maybe_project));
|
||||
let server = LiveServer::new(session);
|
||||
|
||||
@@ -72,7 +72,7 @@ pub fn upload(options: UploadOptions) -> Result<(), UploadError> {
|
||||
let patch_set = compute_patch_set(&snapshot, &tree, root_id);
|
||||
|
||||
log::trace!("Applying patch set");
|
||||
apply_patch_set(&mut tree, &patch_set);
|
||||
apply_patch_set(&mut tree, patch_set);
|
||||
|
||||
let root_id = tree.get_root_id();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user