Tweak whitespace around use statements and other lint fixes

This commit is contained in:
Keavon Chambers
2022-01-15 12:55:51 -08:00
parent c46edfdc5b
commit ab0a55f6ce
23 changed files with 61 additions and 21 deletions
+2 -1
View File
@@ -382,9 +382,10 @@ impl Document {
/// Mutate the document by applying the `operation` to it. If the operation necessitates a
/// reaction from the frontend, responses may be returned.
pub fn handle_operation(&mut self, operation: &Operation) -> Result<Option<Vec<DocumentResponse>>, DocumentError> {
operation.pseudo_hash().hash(&mut self.state_identifier);
use DocumentResponse::*;
operation.pseudo_hash().hash(&mut self.state_identifier);
let responses = match &operation {
Operation::AddEllipse { path, insert_index, transform, style } => {
let layer = Layer::new(LayerDataType::Shape(Shape::ellipse(*style)), *transform);