Skip to content

Commit

Permalink
Merge pull request #21 from psychon/msrv-check
Browse files Browse the repository at this point in the history
Fix building with Rust 1.34 and add a GitHub workflow for checking this property
  • Loading branch information
esposm03 authored Aug 12, 2024
2 parents 2423d8d + 802783a commit 11741ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,20 @@ jobs:
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy

msrv:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install and activate old Rust
run: |
rustup install 1.34.0
rustup default 1.34.0
cargo --version
rustc --version
- name: Build
run: cargo build
- name: Run tests
run: cargo test
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ mod tests {

#[test]
fn test_parse_header() {
let mut cursor = Cursor::new(&FILE_CONTENTS);
let mut cursor = Cursor::new(&FILE_CONTENTS[..]);
assert_eq!(parse_header(&mut cursor).unwrap(), (16, 1));
assert_eq!(cursor.position(), 16);
}
Expand Down

0 comments on commit 11741ea

Please sign in to comment.