Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Aug 21, 2024
1 parent fff653d commit ac29343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treeedbgen-souffle/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ pub fn main(node_types: &str) -> Result<()> {
if let Some(path) = args.output {
let mut file = std::fs::File::create(&path)
.with_context(|| format!("Failed to write to file {}", path))?;
super::gen(&config, &mut file, node_types)?;
super::r#gen(&config, &mut file, node_types)?;
} else {
// https://nnethercote.github.io/perf-book/io.html#locking
let stdout = std::io::stdout();
let mut lock = stdout.lock();
super::gen(&config, &mut lock, node_types)?;
super::r#gen(&config, &mut lock, node_types)?;
}
Ok(())
}

0 comments on commit ac29343

Please sign in to comment.