Skip to content

Commit 034c903

Browse files
authored
Merge pull request #2 from Keruspe/master
Update dependencies
2 parents 14500db + c37ba88 commit 034c903

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ authors = [
1717
[features]
1818

1919
[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"
2222
log = "0.4.8"
2323
memchr = "2.3.3"
2424
pin-project-lite = "0.1.4"
2525

2626
[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"] }

src/handshake.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// 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>) {
33
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");
76
}

tests/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async fn maintain_id_state() -> http_types::Result<()> {
5656
/// https://github.com/web-platform-tests/wpt/blob/master/eventsource/event-data.html
5757
#[async_std::test]
5858
async fn event_data() -> http_types::Result<()> {
59-
femme::start(log::LevelFilter::Trace)?;
59+
femme::with_level(log::LevelFilter::Trace);
6060
let input = concat!(
6161
"data:event\n",
6262
"data:event\n\n",

0 commit comments

Comments
 (0)