diff options
| author | luwenpeng <[email protected]> | 2023-08-18 09:47:16 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-08-18 09:47:43 +0800 |
| commit | b4d0d78a8d9e95363552a1d032f8e9eb564862c1 (patch) | |
| tree | 1b556133a56ac043b4323bd002079c813e54e98d /src/protocol/ip.rs | |
| parent | 185629f06799443a0364506d2be9057744796ab8 (diff) | |
[refactor] Redefine decode trait associated types
Diffstat (limited to 'src/protocol/ip.rs')
| -rw-r--r-- | src/protocol/ip.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol/ip.rs b/src/protocol/ip.rs index 1b92494..d7a1fe9 100644 --- a/src/protocol/ip.rs +++ b/src/protocol/ip.rs @@ -63,7 +63,8 @@ impl From<u8> for IPProtocol { } } -impl Decode<IPProtocol> for IPProtocol { +impl Decode for IPProtocol { + type Iterm = IPProtocol; fn decode(input: &[u8]) -> IResult<&[u8], IPProtocol> { let (input, protocol) = number::streaming::be_u8(input)?; |
