Skip to content

Commit

Permalink
ci: migrate ubuntu-latest to ubuntu-24.04 (#19)
Browse files Browse the repository at this point in the history
* ci: migrate ubuntu-latest to ubuntu-24.04

* fix lint
  • Loading branch information
nh13 authored Dec 4, 2024
1 parent 1e1e112 commit 3acc4a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
jobs:
check:
name: Check
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -30,7 +30,7 @@ jobs:

lints:
name: Lints
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down Expand Up @@ -85,4 +85,4 @@ jobs:
uses: Swatinem/rust-cache@v1

- name: Run tests
run: cargo test --verbose
run: cargo test --verbose
2 changes: 1 addition & 1 deletion src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl Io {
let mut out = self.new_writer(p)?;
for line in lines {
out.write_all(line.as_ref().as_bytes()).map_err(FgError::IoError)?;
out.write_all(&[b'\n']).map_err(FgError::IoError)?;
out.write_all(b"\n").map_err(FgError::IoError)?;
}

out.flush().map_err(FgError::IoError)
Expand Down

0 comments on commit 3acc4a3

Please sign in to comment.