Skip to content

Commit

Permalink
Merge pull request #204 from djc/msrv
Browse files Browse the repository at this point in the history
Fix MSRV and check it in CI
  • Loading branch information
Manishearth authored Nov 5, 2024
2 parents 6cbaf48 + 4f5967b commit 690db06
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ jobs:
run: cargo test --verbose --all-features --all
- name: Build Examples
run: cargo build --examples --all-features --all
msrv:
name: Minimum Supported Rust Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup toolchain add 1.63
- name: Build
run: cargo +1.63 check --lib --all-features
clippy:
name: Clippy
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arbitrary"
version = "1.4.0" # Make sure this matches the derive crate version (not including the patch version)
version = "1.4.1" # Make sure this matches the derive crate version (not including the patch version)
authors = [
"The Rust-Fuzz Project Developers",
"Nick Fitzgerald <fitzgen@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/foreign/alloc/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use {

impl<'a, A> Arbitrary<'a> for Cow<'a, A>
where
A: ToOwned + ?Sized,
A: ToOwned + ?Sized + 'a,
<A as ToOwned>::Owned: Arbitrary<'a>,
{
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl core::fmt::Display for MaxRecursionReached {
}
}

impl core::error::Error for MaxRecursionReached {}
impl std::error::Error for MaxRecursionReached {}

/// Generate arbitrary structured values from raw, unstructured data.
///
Expand Down

0 comments on commit 690db06

Please sign in to comment.