Browse Source

ci: fix clippy warning

github-actions
Garrit Franke 3 years ago
parent
commit
116f226e5f
  1. 2
      .github/workflows/ci.yml
  2. 2
      src/command/build.rs

2
.github/workflows/ci.yml

@ -61,4 +61,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
# args: -- # -D warnings <-- Uncomment to fail when there is a clippy warning
args: -- # -D warnings <-- Uncomment to fail when there is a clippy warning

2
src/command/build.rs

@ -39,7 +39,7 @@ pub fn build(in_file: &PathBuf, out_file: &PathBuf) -> Result<(), String> {
let output = generator::generate(program);
let mut file = std::fs::File::create(out_file).expect("create failed");
file.write(output.as_bytes()).expect("write failed");
file.write_all(output.as_bytes()).expect("write failed");
file.flush().expect("Could not flush file");
Ok(())

Loading…
Cancel
Save