Skip to content

Commit

Permalink
fix initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Sep 17, 2024
1 parent 8226b92 commit 1a1be22
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/spectool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,13 @@ fn main_generate() {
let engine = Engine::new(&config).unwrap();
let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("spec");
let mut found_errors = false;
let mut pre = PrePost::default();
let mut post = PrePost::default();

for entry in std::fs::read_dir(root.join("src")).unwrap() {
let path = entry.unwrap().path();
let name = path.file_stem().unwrap().to_string_lossy();

if name != "inst_fallthrough" {
continue;
} else {
println!("===> {}", name);
}
let mut pre = PrePost::default();
let mut post = PrePost::default();

let input = std::fs::read_to_string(&path).unwrap();
let mut input_lines = Vec::new();
Expand Down

0 comments on commit 1a1be22

Please sign in to comment.