File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ authors = [
17
17
[features ]
18
18
19
19
[dependencies ]
20
- async-std = { version = " 1.5 .0" , features = [" unstable" ] }
21
- http-types = " 1 .0.1"
20
+ async-std = { version = " 1.6 .0" , features = [" unstable" ] }
21
+ http-types = " 2 .0.1"
22
22
log = " 0.4.8"
23
23
memchr = " 2.3.3"
24
24
pin-project-lite = " 0.1.4"
25
25
26
26
[dev-dependencies ]
27
- femme = " 1.3 .0"
28
- async-std = { version = " 1.5 .0" , features = [" attributes" , " unstable" ] }
27
+ femme = " 2.0 .0"
28
+ async-std = { version = " 1.6 .0" , features = [" attributes" , " unstable" ] }
Original file line number Diff line number Diff line change 1
1
/// Upgrade an HTTP connection into an SSE session.
2
- pub fn upgrade ( headers : & mut impl AsMut < http_types:: Headers > ) -> http_types :: Result < ( ) > {
2
+ pub fn upgrade ( headers : & mut impl AsMut < http_types:: Headers > ) {
3
3
let headers = headers. as_mut ( ) ;
4
- headers. insert ( "Cache-Control" , "no-cache" ) ?;
5
- headers. insert ( "Content-Type" , "text/event-stream" ) ?;
6
- Ok ( ( ) )
4
+ headers. insert ( "Cache-Control" , "no-cache" ) ;
5
+ headers. insert ( "Content-Type" , "text/event-stream" ) ;
7
6
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ async fn maintain_id_state() -> http_types::Result<()> {
56
56
/// https://github.com/web-platform-tests/wpt/blob/master/eventsource/event-data.html
57
57
#[ async_std:: test]
58
58
async fn event_data ( ) -> http_types:: Result < ( ) > {
59
- femme:: start ( log:: LevelFilter :: Trace ) ? ;
59
+ femme:: with_level ( log:: LevelFilter :: Trace ) ;
60
60
let input = concat ! (
61
61
"data:event\n " ,
62
62
"data:event\n \n " ,
You can’t perform that action at this time.
0 commit comments