Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG committed Dec 21, 2023
1 parent 2202e78 commit c535aaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spirq-dis/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ fn main() {
.name_ids(!args.raw_id)
.name_type_ids(!args.raw_id)
.name_const_ids(!args.raw_id);
let mut spvasm = dis.disassemble(&SpirvBinary::from(spv)).unwrap_or_else(|e| {
let spvasm = dis.disassemble(&SpirvBinary::from(spv)).unwrap_or_else(|e| {
writeln!(stderr(), "error: failed to read input file: {}", e).unwrap();
exit(1);
});
spvasm.push('\n');

if let Some(out_path) = args.out_path {
let out_path = Path::new(&out_path).to_owned();
Expand Down

0 comments on commit c535aaf

Please sign in to comment.