warning: function is never used: `expect_good`
--> src/packetframe.rs:521:6
|
521 | fn expect_good<R:Read>(rd: &mut FrameReader<R>, expected: &[u8]) {
| ^^^^^^^^^^^
Weirdly, not always. Only on certain rebuilds ? Whatever.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
expect_boom(&mut rd);
// utilitiesfor reading the whole input, collecting into vecs
+ #[cfg(not(miri))]
fn expect_good<R:Read>(rd: &mut FrameReader<R>, expected: &[u8]) {
let mut buf = vec![];
let mut frame = rd.new_frame().unwrap().unwrap();
assert_eq!(&*buf ,expected);
dbgc!(str::from_utf8(&buf).unwrap());
}
+ #[cfg(not(miri))]
fn expect_good_eof<R:Read>(rd: &mut FrameReader<R>) {
let frame = rd.new_frame().unwrap(); assert!(frame.is_none());
let frame = rd.new_frame().unwrap(); assert!(frame.is_none());