Skip to content

Commit 9d08a68

Browse files
committed
fix: FileName::as_str to avoid enclosing virtual filenames in brackets
1 parent bf08ddb commit 9d08a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

midenc-compile/src/stages/parse.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ impl Stage for ParseStage {
4444
input,
4545
session,
4646
&WasmTranslationConfig {
47-
source_name: name.to_string().into(),
47+
source_name: name.as_str().unwrap().to_string().into(),
4848
..Default::default()
4949
},
5050
),
5151
FileType::Wat => self.parse_hir_from_wat_bytes(
5252
input,
5353
session,
5454
&WasmTranslationConfig {
55-
source_name: name.to_string().into(),
55+
source_name: name.as_str().unwrap().to_string().into(),
5656
..Default::default()
5757
},
5858
),

0 commit comments

Comments
 (0)