Skip to content

Commit

Permalink
Merge #113
Browse files Browse the repository at this point in the history
113: Document and test MSRV 1.35.0 r=adamgreig a=ra-kete

Part of [wg/#445](rust-embedded/wg#445).

This includes two minor changes to the code to lower the MSRV from 1.37.0 to 1.34.0.

Co-authored-by: Jan Teske <jteske@posteo.net>
  • Loading branch information
bors[bot] and teskje authored May 5, 2020
2 parents 9a97945 + dabce30 commit 6d61af9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ sudo: required
rust:
- nightly
- stable
# MSRV
- 1.35.0

env: TARGET=x86_64-unknown-linux-gnu

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ This project is developed and maintained by the [Tools team][team].

## ["Documentation"](https://docs.rs/svd-parser)

## Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.35.0 and up. It *might*
compile with older versions but that may change in any new patch release.

## License

Licensed under either of
Expand Down
4 changes: 2 additions & 2 deletions src/svd/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ impl Parse for Field {
if let Some(indices) = &array_info.dim_index {
assert_eq!(array_info.dim as usize, indices.len())
}
Ok(Self::Array(info, array_info))
Ok(Field::Array(info, array_info))
} else {
Ok(Self::Single(info))
Ok(Field::Single(info))
}
}
}
Expand Down

0 comments on commit 6d61af9

Please sign in to comment.