Skip to content

Commit ce51b39

Browse files
committed
Fix compilation errors from updating hyper
1 parent 881e162 commit ce51b39

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ parser = { path = "parser" }
1818
rust_team_data = { git = "https://github.com/rust-lang/team" }
1919
glob = "0.3.0"
2020
toml = "0.8.20"
21-
hyper = { version = "0.14.4", features = ["server", "stream"] }
21+
hyper = { version = "0.14.4", features = ["server", "stream", "http1", "tcp"] }
2222
tokio = { version = "1", features = ["macros", "time", "rt"] }
2323
futures = { version = "0.3", default-features = false, features = ["std"] }
2424
async-trait = "0.1.31"

src/github.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use async_trait::async_trait;
33
use bytes::Bytes;
44
use chrono::{DateTime, FixedOffset, Utc};
55
use futures::{future::BoxFuture, FutureExt};
6-
use hyper::header::HeaderValue;
76
use octocrab::models::{Author, AuthorAssociation};
87
use regex::Regex;
98
use reqwest::header::{AUTHORIZATION, USER_AGENT};
@@ -2396,7 +2395,8 @@ trait RequestSend: Sized {
23962395

23972396
impl RequestSend for RequestBuilder {
23982397
fn configure(self, g: &GithubClient) -> RequestBuilder {
2399-
let mut auth = HeaderValue::from_maybe_shared(format!("token {}", g.token)).unwrap();
2398+
let mut auth =
2399+
reqwest::header::HeaderValue::from_maybe_shared(format!("token {}", g.token)).unwrap();
24002400
auth.set_sensitive(true);
24012401
self.header(USER_AGENT, "rust-lang-triagebot")
24022402
.header(AUTHORIZATION, &auth)

0 commit comments

Comments
 (0)