Browse Source

GitHub actions (#3)

* ci: fix clippy

* ci: fix clippy warning

* ci: add status badge to readme

Co-authored-by: Garrit Franke <garrit@slashdev.space>
c_for-loops
Garrit Franke 12 months ago
committed by GitHub
parent
commit
fe78c6ade3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 2
      src/command/build.rs

2
README.md

@ -1,7 +1,7 @@
# The Sabre Programming language
[![](https://img.shields.io/crates/v/sabre-lang.svg)](https://crates.io/crates/sabre-lang)
[![builds.sr.ht status](https://builds.sr.ht/~garritfra/sabre/commits/ci.yml.svg)](https://builds.sr.ht/~garritfra/sabre/commits/ci.yml?)
![Continuous integration](https://github.com/garritfra/sabre/workflows/Continuous%20integration/badge.svg?branch=master)
[![docs](https://img.shields.io/badge/docs-mdBook-blue.svg)](https://garritfra.github.io/sabre/latest)
[![Chat on Matrix](https://img.shields.io/badge/chat-on%20Matrix-green)](https://matrix.to/#/#sabre:matrix.slashdev.space?via=matrix.slashdev.space)

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