Skip to content

Commit

Permalink
fix: FileName::as_str to avoid enclosing virtual filenames in brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Jun 25, 2024
1 parent 3ec7ed7 commit e511221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions midenc-compile/src/stages/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ impl Stage for ParseStage {
input,
session,
&WasmTranslationConfig {
source_name: name.to_string().into(),
source_name: name.as_str().unwrap().to_string().into(),
..Default::default()
},
),
FileType::Wat => self.parse_hir_from_wat_bytes(
input,
session,
&WasmTranslationConfig {
source_name: name.to_string().into(),
source_name: name.as_str().unwrap().to_string().into(),
..Default::default()
},
),
Expand Down

0 comments on commit e511221

Please sign in to comment.