@arrirpc/codegen-rust 0.63.1 → 0.63.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
@@ -1743,7 +1743,7 @@ function rustRecordFromSchema(schema, context) {
|
|
1743
1743
|
if _index_ != 0 {
|
1744
1744
|
${target}.push(',');
|
1745
1745
|
}
|
1746
|
-
${target}.push_str(format!("
|
1746
|
+
${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
|
1747
1747
|
match _value_ {
|
1748
1748
|
Some(value_val) => {
|
1749
1749
|
${innerType.toJsonTemplate("value_val", target)};
|
@@ -1760,7 +1760,7 @@ function rustRecordFromSchema(schema, context) {
|
|
1760
1760
|
if _index_ != 0 {
|
1761
1761
|
${target}.push(',');
|
1762
1762
|
}
|
1763
|
-
${target}.push_str(format!("
|
1763
|
+
${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
|
1764
1764
|
${innerType.toJsonTemplate(`_value_`, target)};
|
1765
1765
|
}
|
1766
1766
|
${target}.push('}')`;
|
package/dist/index.mjs
CHANGED
@@ -1735,7 +1735,7 @@ function rustRecordFromSchema(schema, context) {
|
|
1735
1735
|
if _index_ != 0 {
|
1736
1736
|
${target}.push(',');
|
1737
1737
|
}
|
1738
|
-
${target}.push_str(format!("
|
1738
|
+
${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
|
1739
1739
|
match _value_ {
|
1740
1740
|
Some(value_val) => {
|
1741
1741
|
${innerType.toJsonTemplate("value_val", target)};
|
@@ -1752,7 +1752,7 @@ function rustRecordFromSchema(schema, context) {
|
|
1752
1752
|
if _index_ != 0 {
|
1753
1753
|
${target}.push(',');
|
1754
1754
|
}
|
1755
|
-
${target}.push_str(format!("
|
1755
|
+
${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
|
1756
1756
|
${innerType.toJsonTemplate(`_value_`, target)};
|
1757
1757
|
}
|
1758
1758
|
${target}.push('}')`;
|