From 2e64e5a9ff72db0d7b13852e9b9c99ad98bb3d15 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Sun, 28 Oct 2018 17:46:23 +0000 Subject: [PATCH] Use BootstrapDecode instead of Buf as trait bound. --- src/proto/base_codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/base_codec.rs b/src/proto/base_codec.rs index 6247707..f0efa43 100644 --- a/src/proto/base_codec.rs +++ b/src/proto/base_codec.rs @@ -146,7 +146,7 @@ where impl Decode> for T where - T: Buf + Decode, + T: BootstrapDecode + Decode, { fn decode(&mut self) -> io::Result> { let len = self.decode_u32_generic("vector length")? as usize;