diff --git a/src/synthesizer/csharp/mod.rs b/src/synthesizer/csharp/mod.rs index b7e1b62b..89950180 100644 --- a/src/synthesizer/csharp/mod.rs +++ b/src/synthesizer/csharp/mod.rs @@ -373,12 +373,12 @@ impl CsharpEmitter for ConditionIr { ConditionIr::Ref(reference) => { reference.emit_csharp(output); Ok(()) - }, + } ConditionIr::Str(str) => Ok(output.text(format!("\"{str}\""))), ConditionIr::Condition(condition) => { output.text(camel_case(condition)); Ok(()) - }, + } ConditionIr::And(list) => { for (index, condition) in list.iter().enumerate() { @@ -485,15 +485,15 @@ impl ResourceIr { ResourceIr::Bool(bool) => { output.text(bool.to_string()); Ok(()) - }, + } ResourceIr::Number(number) => { output.text(number.to_string()); Ok(()) - }, + } ResourceIr::Double(double) => { output.text(double.to_string()); Ok(()) - }, + } ResourceIr::String(str) => { if str.lines().count() > 1 { output.text(format!("@\"{str}\"")); @@ -627,7 +627,7 @@ impl ResourceIr { ResourceIr::Ref(reference) => { reference.emit_csharp(output); Ok(()) - }, + } ResourceIr::Sub(parts) => { output.text("$\""); for part in parts { diff --git a/src/synthesizer/java/mod.rs b/src/synthesizer/java/mod.rs index 58cf75e4..319e7219 100644 --- a/src/synthesizer/java/mod.rs +++ b/src/synthesizer/java/mod.rs @@ -691,11 +691,11 @@ fn emit_java( ResourceIr::Null => { output.text("null"); Ok(()) - }, + } ResourceIr::Bool(bool) => { output.text(bool.to_string()); Ok(()) - }, + } ResourceIr::Double(number) => Ok(output.text(format!("{number}"))), ResourceIr::Number(number) => Ok(output.text(format!("{number}"))), ResourceIr::String(text) => { @@ -783,13 +783,11 @@ fn emit_java( } Ok(()) } - other => { - Err(Error::TypeReferenceError { - message: format!( - "Type reference {other:#?} not implemented for ResourceIr::Object" - ), - }) - } + other => Err(Error::TypeReferenceError { + message: format!( + "Type reference {other:#?} not implemented for ResourceIr::Object" + ), + }), }, // Intrinsics @@ -913,7 +911,7 @@ fn emit_java( ResourceIr::Ref(reference) => { output.text(emit_reference(reference)); Ok(()) - }, + } } }