diff options
author | Profpatsch <mail@profpatsch.de> | 2020-06-27 01:55:05 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-06-27 01:55:05 +0200 |
commit | a46b64eec2daa068b81b7bcedbcd0df71cdc133e (patch) | |
tree | 5f946166faca01d51b7402c444415b97c7ee0cdd | |
parent | b21008f5d7b62fabc3d6fddec29f39dd80a89d60 (diff) |
pkgs/profpatsch/netencode: actually enable parsing the binary type
-rw-r--r-- | pkgs/profpatsch/netencode/netencode.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/profpatsch/netencode/netencode.rs b/pkgs/profpatsch/netencode/netencode.rs index 0f7e1aa2..6e73bbb4 100644 --- a/pkgs/profpatsch/netencode/netencode.rs +++ b/pkgs/profpatsch/netencode/netencode.rs @@ -323,6 +323,7 @@ pub mod parse { pub fn u_u(s: &[u8]) -> IResult<&[u8], U> { alt(( map(text_g(), U::Text), + map(binary_g(), U::Binary), map(unit_t, |()| U::Unit), map(tag_g(u_u), |t| U::Sum(t.map(Box::new))), map(list_g(), U::List), @@ -351,6 +352,7 @@ pub mod parse { fn t_t(s: &[u8]) -> IResult<&[u8], T> { alt(( text, + binary(), map(unit_t, |_| T::Unit), map(tag_t, |t| T::Sum(t)), map(list_t, |l| T::List(Box::new(l))), |