File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ name = "futures_sink"
16
16
17
17
[features ]
18
18
default = [" std" ]
19
- std = [" alloc" , " futures-core-preview/std " ]
20
- alloc = [" futures-core-preview/alloc " ]
19
+ std = [" alloc" ]
20
+ alloc = []
21
21
22
22
[dependencies ]
23
- futures-core-preview = { path = " ../futures-core" , version = " =0.3.0-alpha.18" , default-features = false }
Original file line number Diff line number Diff line change 16
16
#[ cfg( feature = "alloc" ) ]
17
17
extern crate alloc;
18
18
19
- use futures_core:: task:: { Context , Poll } ;
20
19
use core:: ops:: DerefMut ;
21
20
use core:: pin:: Pin ;
21
+ use core:: task:: { Context , Poll } ;
22
22
23
23
/// A `Sink` is a value into which other values can be sent, asynchronously.
24
24
///
@@ -84,8 +84,7 @@ pub trait Sink<Item> {
84
84
///
85
85
/// In most cases, if the sink encounters an error, the sink will
86
86
/// permanently be unable to receive items.
87
- fn start_send ( self : Pin < & mut Self > , item : Item )
88
- -> Result < ( ) , Self :: Error > ;
87
+ fn start_send ( self : Pin < & mut Self > , item : Item ) -> Result < ( ) , Self :: Error > ;
89
88
90
89
/// Flush any remaining output from this sink.
91
90
///
@@ -162,7 +161,7 @@ where
162
161
#[ cfg( feature = "alloc" ) ]
163
162
mod if_alloc {
164
163
use super :: * ;
165
- use futures_core :: never :: Never ;
164
+ use core :: convert :: Infallible as Never ;
166
165
167
166
impl < T > Sink < T > for alloc:: vec:: Vec < T > {
168
167
type Error = Never ;
You can’t perform that action at this time.
0 commit comments