File tree Expand file tree Collapse file tree 4 files changed +4
-11
lines changed
Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " async-speed-limit"
3- version = " 0.4.0 "
3+ version = " 0.4.1 "
44authors = [" The TiKV Project Developers" ]
55license = " MIT OR Apache-2.0"
66edition = " 2018"
@@ -13,7 +13,7 @@ all-features = true
1313
1414[dependencies ]
1515futures-timer = { version = " 3.0.2" , optional = true }
16- futures-io = { version = " 0.3.1 " , optional = true }
16+ futures-io = { version = " 0.3.19 " , optional = true }
1717futures-core = { version = " 0.3.1" , optional = true }
1818pin-project-lite = " 0.2.0"
1919tokio = { version = " 1" , optional = true }
@@ -22,7 +22,7 @@ tokio = { version = "1", optional = true }
2222default = [" futures-io" , " fused-future" , " standard-clock" ]
2323standard-clock = [" futures-timer" ]
2424fused-future = [" futures-core" ]
25- read-initializer = [" futures-io/unstable " , " futures-io/read-initializer " ]
25+ read-initializer = [] # This feature has been deprecated. It is only kept for downstream compatibility.
2626
2727[dev-dependencies ]
2828futures-executor = " 0.3.1"
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ the types.
6868| ** standard-clock** (default) | [ futures-timer] | Enables the ` clock::StandardClock ` struct. |
6969| ** fused-future** (default) | [ futures-core] | Implements ` FusedFuture ` on ` limiter::Consume ` . |
7070| ** futures-io** (default) | [ futures-io] | Implements ` AsyncRead ` and ` AsyncWrite ` on ` limiter::Resource ` . |
71- | ** read-initializer** | [ futures-io ] | Implements ` AsyncRead::initializer ` .< br >Unstable and requires nightly compiler to enable. |
71+ | ~~ ** read-initializer** ~~ | - | Deprecated and does nothing. This feature has been removed since ` futures-io 0.3.19 ` . |
7272
7373[ futures-core ] : https://crates.io/crates/futures-core
7474[ futures-io ] : https://crates.io/crates/futures-io
Original file line number Diff line number Diff line change @@ -12,12 +12,6 @@ fn length_of_result_usize<B>(a: &io::Result<usize>, _: &B) -> usize {
1212}
1313
1414impl < R : futures_io:: AsyncRead , C : Clock > futures_io:: AsyncRead for Resource < R , C > {
15- #[ cfg( feature = "read-initializer" ) ]
16- #[ allow( unsafe_code) ]
17- unsafe fn initializer ( & self ) -> io:: Initializer {
18- self . get_ref ( ) . initializer ( )
19- }
20-
2115 fn poll_read (
2216 self : Pin < & mut Self > ,
2317 cx : & mut Context < ' _ > ,
Original file line number Diff line number Diff line change 1515 clippy:: pedantic
1616) ]
1717#![ allow( clippy:: module_name_repetitions, clippy:: must_use_candidate) ]
18- #![ cfg_attr( feature = "read-initializer" , feature( read_initializer) ) ]
1918#![ doc = include_str ! ( "../README.md" ) ]
2019
2120pub mod clock;
You can’t perform that action at this time.
0 commit comments