Modify all message enum data to use named struct values, not tuples (#479)

* Massively reorganize and clean up the whole Rust codebase

* Modify all message enum data to use named struct values, not tuples
This commit is contained in:
Keavon Chambers
2022-01-14 20:54:38 -08:00
parent 9b6cbb5f50
commit ea2d003484
25 changed files with 612 additions and 390 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ impl Document {
return Err(DocumentError::IndexOutOfBounds);
}
}
Operation::RenameLayer { path, name } => {
Operation::RenameLayer { layer_path: path, new_name: name } => {
self.layer_mut(path)?.name = Some(name.clone());
Some(vec![LayerChanged { path: path.clone() }])
}
+2 -2
View File
@@ -71,8 +71,8 @@ pub enum Operation {
path: Vec<LayerId>,
},
RenameLayer {
path: Vec<LayerId>,
name: String,
layer_path: Vec<LayerId>,
new_name: String,
},
InsertLayer {
layer: Layer,