File tree 4 files changed +7
-12
lines changed
4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 23
23
strategy :
24
24
matrix :
25
25
rust :
26
- - 1.65 .0 # MSRV
26
+ - 1.81 .0 # MSRV
27
27
- stable
28
28
target :
29
29
- armv7a-none-eabi
53
53
- uses : actions/checkout@v4
54
54
- uses : dtolnay/rust-toolchain@master
55
55
with :
56
- toolchain : 1.75 .0
56
+ toolchain : 1.81 .0
57
57
components : clippy
58
58
- run : cargo clippy --all --all-features -- -D warnings
59
59
95
95
strategy :
96
96
matrix :
97
97
toolchain :
98
- - 1.65 .0 # MSRV
98
+ - 1.81 .0 # MSRV
99
99
- stable
100
100
runs-on : ubuntu-latest
101
101
steps :
Original file line number Diff line number Diff line change @@ -14,14 +14,13 @@ categories = ["no-std", "data-structures"]
14
14
keywords = [" generic-array" ]
15
15
readme = " README.md"
16
16
edition = " 2021"
17
- rust-version = " 1.65 "
17
+ rust-version = " 1.81.0 "
18
18
19
19
[dependencies ]
20
20
typenum = { version = " 1.17" , features = [" const-generics" ] }
21
21
zeroize = { version = " 1.8" , optional = true , default-features = false }
22
22
23
23
[features ]
24
- std = []
25
24
extra-sizes = []
26
25
27
26
[package .metadata .docs .rs ]
Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ impl fmt::Display for TryFromIteratorError {
18
18
}
19
19
}
20
20
21
- #[ cfg( feature = "std" ) ]
22
- impl std:: error:: Error for TryFromIteratorError { }
21
+ impl core:: error:: Error for TryFromIteratorError { }
23
22
24
23
impl < T , U > Array < T , U >
25
24
where
Original file line number Diff line number Diff line change 84
84
//! If you have any questions, please
85
85
//! [start a discussion](https://github.com/RustCrypto/hybrid-array/discussions).
86
86
87
- #[ cfg( feature = "std" ) ]
88
- extern crate std;
89
-
90
87
pub mod sizes;
91
88
92
89
mod from_fn;
@@ -207,7 +204,7 @@ where
207
204
U : Add < N > ,
208
205
Sum < U , N > : ArraySize ,
209
206
{
210
- self . into_iter ( ) . chain ( other. into_iter ( ) ) . collect ( )
207
+ self . into_iter ( ) . chain ( other) . collect ( )
211
208
}
212
209
213
210
/// Splits `self` at index `N` in two arrays.
@@ -766,7 +763,7 @@ where
766
763
767
764
#[ inline]
768
765
fn try_from ( slice : & ' a [ T ] ) -> Result < Array < T , U > , TryFromSliceError > {
769
- <& ' a Self >:: try_from ( slice) . map ( Clone :: clone )
766
+ <& ' a Self >:: try_from ( slice) . cloned ( )
770
767
}
771
768
}
772
769
You can’t perform that action at this time.
0 commit comments