Browse Source

Use BootstrapDecode instead of Buf as trait bound.

wip
Titouan Rigoudy 7 years ago
parent
commit
2e64e5a9ff
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/proto/base_codec.rs

+ 1
- 1
src/proto/base_codec.rs View File

@ -146,7 +146,7 @@ where
impl<T, U> Decode<Vec<U>> for T impl<T, U> Decode<Vec<U>> for T
where where
T: Buf + Decode<U>,
T: BootstrapDecode + Decode<U>,
{ {
fn decode(&mut self) -> io::Result<Vec<U>> { fn decode(&mut self) -> io::Result<Vec<U>> {
let len = self.decode_u32_generic("vector length")? as usize; let len = self.decode_u32_generic("vector length")? as usize;


Loading…
Cancel
Save