File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 matrix :
4141 # aarch64/x86_64 macOS and aarch64 Linux are tested on Cirrus CI
4242 include :
43- - rust : ' 1.38 '
43+ - rust : ' 1.59 '
4444 os : ubuntu-latest
45- - rust : ' 1.38 '
45+ - rust : ' 1.59 '
4646 os : windows-latest
4747 - rust : stable
4848 os : ubuntu-latest
8383 fail-fast : false
8484 matrix :
8585 rust :
86- - ' 1.38 '
86+ - ' 1.59 '
8787 - nightly
8888 runs-on : ubuntu-latest
8989 steps :
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name = "crossbeam"
66# - Create "crossbeam-X.Y.Z" git tag
77version = " 0.8.2"
88edition = " 2018"
9- rust-version = " 1.38 "
9+ rust-version = " 1.59 "
1010license = " MIT OR Apache-2.0"
1111repository = " https://github.com/crossbeam-rs/crossbeam"
1212homepage = " https://github.com/crossbeam-rs/crossbeam"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ https://github.com/crossbeam-rs/crossbeam#license)
88https://crates.io/crates/crossbeam )
99[ ![ Documentation] ( https://docs.rs/crossbeam/badge.svg )] (
1010https://docs.rs/crossbeam )
11- [ ![ Rust 1.38 +] ( https://img.shields.io/badge/rust-1.38 +-lightgray.svg )] (
11+ [ ![ Rust 1.59 +] ( https://img.shields.io/badge/rust-1.59 +-lightgray.svg )] (
1212https://www.rust-lang.org )
1313[ ![ chat] ( https://img.shields.io/discord/569610676205781012.svg?logo=discord )] ( https://discord.com/invite/JXYwgWZ )
1414
@@ -94,7 +94,7 @@ crossbeam = "0.8"
9494
9595Crossbeam supports stable Rust releases going back at least six months,
9696and every time the minimum supported Rust version is increased, a new minor
97- version is released. Currently, the minimum supported Rust version is 1.38 .
97+ version is released. Currently, the minimum supported Rust version is 1.59 .
9898
9999## Contributing
100100
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name = "crossbeam-channel"
66# - Create "crossbeam-channel-X.Y.Z" git tag
77version = " 0.5.8"
88edition = " 2018"
9- rust-version = " 1.38 "
9+ rust-version = " 1.59 "
1010license = " MIT OR Apache-2.0"
1111repository = " https://github.com/crossbeam-rs/crossbeam"
1212homepage = " https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel#license)
88https://crates.io/crates/crossbeam-channel )
99[ ![ Documentation] ( https://docs.rs/crossbeam-channel/badge.svg )] (
1010https://docs.rs/crossbeam-channel )
11- [ ![ Rust 1.38 +] ( https://img.shields.io/badge/rust-1.38 +-lightgray.svg )] (
11+ [ ![ Rust 1.59 +] ( https://img.shields.io/badge/rust-1.59 +-lightgray.svg )] (
1212https://www.rust-lang.org )
1313[ ![ chat] ( https://img.shields.io/discord/569610676205781012.svg?logo=discord )] ( https://discord.com/invite/JXYwgWZ )
1414
@@ -48,7 +48,7 @@ crossbeam-channel = "0.5"
4848
4949Crossbeam Channel supports stable Rust releases going back at least six months,
5050and every time the minimum supported Rust version is increased, a new minor
51- version is released. Currently, the minimum supported Rust version is 1.38 .
51+ version is released. Currently, the minimum supported Rust version is 1.59 .
5252
5353## License
5454
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fn main() {
1818 // Creates a channel that gets a message every time `SIGINT` is signalled.
1919 fn sigint_notifier ( ) -> io:: Result < Receiver < ( ) > > {
2020 let ( s, r) = bounded ( 100 ) ;
21- let mut signals = Signals :: new ( & [ SIGINT ] ) ?;
21+ let mut signals = Signals :: new ( [ SIGINT ] ) ?;
2222
2323 thread:: spawn ( move || {
2424 for _ in signals. forever ( ) {
Original file line number Diff line number Diff line change 335335 unreachable_pub
336336) ]
337337#![ cfg_attr( not( feature = "std" ) , no_std) ]
338+ #![ allow( clippy:: match_like_matches_macro) ]
338339
339340use cfg_if:: cfg_if;
340341
Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ impl From<usize> for Selected {
7979 }
8080}
8181
82- impl Into < usize > for Selected {
82+ impl From < Selected > for usize {
8383 #[ inline]
84- fn into ( self ) -> usize {
85- match self {
84+ fn from ( val : Selected ) -> Self {
85+ match val {
8686 Selected :: Waiting => 0 ,
8787 Selected :: Aborted => 1 ,
8888 Selected :: Disconnected => 2 ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name = "crossbeam-deque"
66# - Create "crossbeam-deque-X.Y.Z" git tag
77version = " 0.8.3"
88edition = " 2018"
9- rust-version = " 1.38 "
9+ rust-version = " 1.59 "
1010license = " MIT OR Apache-2.0"
1111repository = " https://github.com/crossbeam-rs/crossbeam"
1212homepage = " https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-deque"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-deque#license)
88https://crates.io/crates/crossbeam-deque )
99[ ![ Documentation] ( https://docs.rs/crossbeam-deque/badge.svg )] (
1010https://docs.rs/crossbeam-deque )
11- [ ![ Rust 1.38 +] ( https://img.shields.io/badge/rust-1.38 +-lightgray.svg )] (
11+ [ ![ Rust 1.59 +] ( https://img.shields.io/badge/rust-1.59 +-lightgray.svg )] (
1212https://www.rust-lang.org )
1313[ ![ chat] ( https://img.shields.io/discord/569610676205781012.svg?logo=discord )] ( https://discord.com/invite/JXYwgWZ )
1414
@@ -28,7 +28,7 @@ crossbeam-deque = "0.8"
2828
2929Crossbeam Deque supports stable Rust releases going back at least six months,
3030and every time the minimum supported Rust version is increased, a new minor
31- version is released. Currently, the minimum supported Rust version is 1.38 .
31+ version is released. Currently, the minimum supported Rust version is 1.59 .
3232
3333## License
3434
You can’t perform that action at this time.
0 commit comments