diff --git a/midenc-compile/src/stages/parse.rs b/midenc-compile/src/stages/parse.rs index 56c62d649..6cc64747a 100644 --- a/midenc-compile/src/stages/parse.rs +++ b/midenc-compile/src/stages/parse.rs @@ -44,7 +44,7 @@ impl Stage for ParseStage { input, session, &WasmTranslationConfig { - source_name: name.to_string().into(), + source_name: name.as_str().unwrap().to_string().into(), ..Default::default() }, ), @@ -52,7 +52,7 @@ impl Stage for ParseStage { input, session, &WasmTranslationConfig { - source_name: name.to_string().into(), + source_name: name.as_str().unwrap().to_string().into(), ..Default::default() }, ),