aboutsummaryrefslogtreecommitdiff
path: root/server/editor/src
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-12-14 01:43:22 +0100
committernokoe <nokoe@mailbox.org>2025-12-14 01:44:14 +0100
commitf43daec5936b827285a14c50377bb592ed9d1311 (patch)
tree28573f5b4339c3f23f455b0debef178c9ea45b55 /server/editor/src
parentb87392558f12de8404bd5ab181d328fd66a106e2 (diff)
downloadhurrycurry-f43daec5936b827285a14c50377bb592ed9d1311.tar
hurrycurry-f43daec5936b827285a14c50377bb592ed9d1311.tar.bz2
hurrycurry-f43daec5936b827285a14c50377bb592ed9d1311.tar.zst
replace `serde_yml` with `serde_yaml_ng`
Diffstat (limited to 'server/editor/src')
-rw-r--r--server/editor/src/save.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/editor/src/save.rs b/server/editor/src/save.rs
index c8ff350a..43a2fe93 100644
--- a/server/editor/src/save.rs
+++ b/server/editor/src/save.rs
@@ -72,11 +72,11 @@ pub fn export_state(state: &State) -> String {
customer_spawn: '!',
score_baseline: 200,
};
- serde_yml::to_string(&decl).unwrap()
+ serde_yaml_ng::to_string(&decl).unwrap()
}
pub fn import_state(state: &mut State, s: &str) -> Result<()> {
- let decl: MapDecl = serde_yml::from_str(s)?;
+ let decl: MapDecl = serde_yaml_ng::from_str(s)?;
let name_to_tile = HashMap::<_, _, RandomState>::from_iter(
TILES