Skip to content

Commit 6d61af9

Browse files
bors[bot]teskje
andauthored
Merge #113
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 <[email protected]>
2 parents 9a97945 + dabce30 commit 6d61af9

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sudo: required
66
rust:
77
- nightly
88
- stable
9+
# MSRV
10+
- 1.35.0
911

1012
env: TARGET=x86_64-unknown-linux-gnu
1113

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ This project is developed and maintained by the [Tools team][team].
1111

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

14+
## Minimum Supported Rust Version (MSRV)
15+
16+
This crate is guaranteed to compile on stable Rust 1.35.0 and up. It *might*
17+
compile with older versions but that may change in any new patch release.
18+
1419
## License
1520

1621
Licensed under either of

src/svd/field.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ impl Parse for Field {
4444
if let Some(indices) = &array_info.dim_index {
4545
assert_eq!(array_info.dim as usize, indices.len())
4646
}
47-
Ok(Self::Array(info, array_info))
47+
Ok(Field::Array(info, array_info))
4848
} else {
49-
Ok(Self::Single(info))
49+
Ok(Field::Single(info))
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)