Skip to content

Commit 1b4540c

Browse files
committed
Remove extra state from encoder
1 parent 83405a5 commit 1b4540c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/server/encode.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ pub(crate) struct Encoder {
3333
/// The amount of bytes read from the body.
3434
/// This is only used in the known-length body encoder.
3535
body_bytes_read: usize,
36-
/// The current chunk being re
37-
/// This is only used in the chunked body encoder.
38-
chunk: Option<io::Cursor<Vec<u8>>>,
39-
/// Determine whether this is the last chunk
40-
/// This is only used in the chunked body encoder.
41-
is_last: bool,
4236
}
4337

4438
#[derive(Debug)]
@@ -61,8 +55,6 @@ impl Encoder {
6155
head_bytes_read: 0,
6256
body_len: 0,
6357
body_bytes_read: 0,
64-
chunk: None,
65-
is_last: false,
6658
}
6759
}
6860
}

0 commit comments

Comments
 (0)