aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/lib/code')
-rw-r--r--codegen/lib/code/entity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py
index 75ca72e5..1297b9f6 100644
--- a/codegen/lib/code/entity.py
+++ b/codegen/lib/code/entity.py
@@ -557,7 +557,7 @@ impl From<EntityDataValue> for UpdateMetadataError {
default = "true" if default else "false"
elif type_name == "String":
string_escaped = default.replace('"', '\\"')
- default = f'"{string_escaped}".to_owned()'
+ default = f'"{string_escaped}".into()'
elif type_name == "BlockPos":
default = f"BlockPos::new{default}"
elif type_name == "OptionalBlockPos": # Option<BlockPos>