Skip to content

Commit 0cad5b4

Browse files
committed
fixup function signatures
1 parent c4a664e commit 0cad5b4

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/client/encode.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use http_types::{headers::HOST, Method, Request};
77
use std::pin::Pin;
88

99
/// An HTTP encoder.
10-
#[doc(hidden)]
1110
#[derive(Debug)]
1211
pub struct Encoder {
1312
/// Keep track how far we've indexed into the headers + body.

src/server/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Read for Encoder {
7171

7272
impl Encoder {
7373
/// Create a new instance of Encoder.
74-
pub fn new(res: Response) -> Self {
74+
pub fn new(res: Response, method: Method) -> Self {
7575
Self {
7676
res,
7777
depth: 0,

src/server/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
use std::time::Duration;
44

55
use async_std::future::{timeout, Future, TimeoutError};
6-
use async_std::io::{self};
7-
use async_std::io::{Read, Write};
6+
use async_std::io::{self, Read, Write};
87
use http_types::{Request, Response};
98

109
mod decode;

0 commit comments

Comments
 (0)