Skip to content

Commit a5d21dc

Browse files
committed
Switch to core::error::Error
1 parent c8b1a2f commit a5d21dc

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/hybrid-array.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
rust:
26-
- 1.65.0 # MSRV
26+
- 1.81.0 # MSRV
2727
- stable
2828
target:
2929
- armv7a-none-eabi
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions/checkout@v4
5454
- uses: dtolnay/rust-toolchain@master
5555
with:
56-
toolchain: 1.75.0
56+
toolchain: 1.81.0
5757
components: clippy
5858
- run: cargo clippy --all --all-features -- -D warnings
5959

@@ -95,7 +95,7 @@ jobs:
9595
strategy:
9696
matrix:
9797
toolchain:
98-
- 1.65.0 # MSRV
98+
- 1.81.0 # MSRV
9999
- stable
100100
runs-on: ubuntu-latest
101101
steps:

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["no-std", "data-structures"]
1414
keywords = ["generic-array"]
1515
readme = "README.md"
1616
edition = "2021"
17-
rust-version = "1.65"
17+
rust-version = "1.81.0"
1818

1919
[dependencies]
2020
typenum = { version = "1.17", features = ["const-generics"] }

src/iter.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ impl fmt::Display for TryFromIteratorError {
1818
}
1919
}
2020

21-
#[cfg(feature = "std")]
22-
impl std::error::Error for TryFromIteratorError {}
21+
impl core::error::Error for TryFromIteratorError {}
2322

2423
impl<T, U> Array<T, U>
2524
where

0 commit comments

Comments
 (0)