refactor(http1): updated Encoder/Decoder match with the matches macro (#2368)
This commit is contained in:
@@ -68,10 +68,7 @@ impl Encoder {
|
||||
}
|
||||
|
||||
pub fn is_eof(&self) -> bool {
|
||||
match self.kind {
|
||||
Kind::Length(0) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self.kind, Kind::Length(0))
|
||||
}
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
|
||||
Reference in New Issue
Block a user