Skip to content

Commit 690db06

Browse files
authored
Merge pull request #204 from djc/msrv
Fix MSRV and check it in CI
2 parents 6cbaf48 + 4f5967b commit 690db06

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/rust.yml

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
run: cargo test --verbose --all-features --all
2626
- name: Build Examples
2727
run: cargo build --examples --all-features --all
28+
msrv:
29+
name: Minimum Supported Rust Version
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- run: rustup toolchain add 1.63
34+
- name: Build
35+
run: cargo +1.63 check --lib --all-features
2836
clippy:
2937
name: Clippy
3038
runs-on: ubuntu-latest

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "arbitrary"
3-
version = "1.4.0" # Make sure this matches the derive crate version (not including the patch version)
3+
version = "1.4.1" # Make sure this matches the derive crate version (not including the patch version)
44
authors = [
55
"The Rust-Fuzz Project Developers",
66
"Nick Fitzgerald <[email protected]>",

src/foreign/alloc/borrow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use {
55

66
impl<'a, A> Arbitrary<'a> for Cow<'a, A>
77
where
8-
A: ToOwned + ?Sized,
8+
A: ToOwned + ?Sized + 'a,
99
<A as ToOwned>::Owned: Arbitrary<'a>,
1010
{
1111
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl core::fmt::Display for MaxRecursionReached {
4949
}
5050
}
5151

52-
impl core::error::Error for MaxRecursionReached {}
52+
impl std::error::Error for MaxRecursionReached {}
5353

5454
/// Generate arbitrary structured values from raw, unstructured data.
5555
///

0 commit comments

Comments
 (0)