From 5919ab23c55639bdbe1c55e2f5410fe51207921a Mon Sep 17 00:00:00 2001 From: me Date: Fri, 26 Dec 2025 20:08:02 +0200 Subject: [PATCH] fix wasm --- html/index.html | 2 +- src/game.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index ae90851..39ba49c 100644 --- a/html/index.html +++ b/html/index.html @@ -8,6 +8,6 @@ - + diff --git a/src/game.rs b/src/game.rs index b660476..35998eb 100644 --- a/src/game.rs +++ b/src/game.rs @@ -66,8 +66,8 @@ fn read_file() -> Result { } } #[cfg(target_arch = "wasm32")] -fn read_file() -> Result { - let code = Ok(include_str!("../games/there-she-is.ayin").to_string()); +fn read_file() -> Result { + let code = include_str!("../games/there-she-is.ayin").to_string(); match ayin::parser::parse_file(code) { Err(err) => Err(format!("Error: {err:#?}")), Ok(program) => Ok(program),