diff --git a/src/bytes.rs b/src/bytes.rs index d48c2f7..eabfb29 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -159,7 +159,7 @@ impl> Decodable for $name { if s.len() != $size { // Would prefer to return Err() here but the type may clash // with the type of the Decoder. - fail!("Can't decode, invalid size."); + panic!("Can't decode, invalid size."); } Ok($name { bytes: s