From a46b64eec2daa068b81b7bcedbcd0df71cdc133e Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 27 Jun 2020 01:55:05 +0200 Subject: pkgs/profpatsch/netencode: actually enable parsing the binary type --- pkgs/profpatsch/netencode/netencode.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs') 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))), -- cgit 1.4.1