Skip to content

Commit

Permalink
Merge pull request #152 from dzfrias/proper-read
Browse files Browse the repository at this point in the history
Fix small typo when reading modules
  • Loading branch information
brson authored Aug 11, 2023
2 parents e01ef8d + 3eb350f commit 8e1bc6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/wasm-opt/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ impl OptimizationOptions {
reader.set_dwarf(set_dwarf);

match self.reader.file_type {
FileType::Wasm => reader.read_text(infile, &mut m),
FileType::Wat => reader.read_binary(infile, &mut m, infile_sourcemap),
FileType::Wasm => reader.read_binary(infile, &mut m, infile_sourcemap),
FileType::Wat => reader.read_text(infile, &mut m),
FileType::Any => reader.read(infile, &mut m, infile_sourcemap),
}
.map_err(|e| OptimizationError::Read {
Expand Down

0 comments on commit 8e1bc6c

Please sign in to comment.