Skip to content

Commit d85d2b6

Browse files
committed
Fix messagepack test
1 parent 9bfb777 commit d85d2b6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
11.6 KB
Binary file not shown.

tests/fixtures/messagepack-valid/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ use std::io::{Read, Write};
33
fn main() {
44
let mut buf: Vec<u8> = vec![];
55
std::io::stdin().read_to_end(&mut buf).unwrap();
6+
let mut cursor = std::io::Cursor::new(&buf);
7+
rmpv::decode::read_value(&mut cursor).expect("Valid messagepack");
68
std::io::stdout().write_all(&buf).unwrap();
79
}

0 commit comments

Comments
 (0)