From 9acbb75bc5fee152e707a666c14608c5821392a2 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 30 Oct 2014 00:25:54 -0400 Subject: [PATCH] fail -> panic --- src/bytes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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