summaryrefslogtreecommitdiff
path: root/src/protocol/http.rs
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-08-18 09:47:16 +0800
committerluwenpeng <[email protected]>2023-08-18 09:47:43 +0800
commitb4d0d78a8d9e95363552a1d032f8e9eb564862c1 (patch)
tree1b556133a56ac043b4323bd002079c813e54e98d /src/protocol/http.rs
parent185629f06799443a0364506d2be9057744796ab8 (diff)
[refactor] Redefine decode trait associated types
Diffstat (limited to 'src/protocol/http.rs')
-rw-r--r--src/protocol/http.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol/http.rs b/src/protocol/http.rs
index b7abccc..289b915 100644
--- a/src/protocol/http.rs
+++ b/src/protocol/http.rs
@@ -15,7 +15,8 @@ impl HTTP_MESSAGE {
}
}
-impl Decode<HTTP_MESSAGE> for HTTP_MESSAGE {
+impl Decode for HTTP_MESSAGE {
+ type Iterm = HTTP_MESSAGE;
fn decode(input: &[u8]) -> IResult<&[u8], HTTP_MESSAGE> {
let message = HTTP_MESSAGE::new();
// TODO