From 517a381becbf643651c133fec593de3b0ea8d6fd Mon Sep 17 00:00:00 2001 From: James Sanderson Date: Fri, 21 Nov 2014 22:49:26 +0000 Subject: [PATCH] Update to be compatible with latest Rust Change fail! to panic! https://github.com/rust-lang/rust/issues/17489 --- src/hex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hex.rs b/src/hex.rs index 145bc5d..0aa502d 100644 --- a/src/hex.rs +++ b/src/hex.rs @@ -6,7 +6,7 @@ pub fn hex_to_int(hex: char) -> int { hex as int - 'a' as int + 10 } else { - fail!("Character {} out of range", hex); + panic!("Character {} out of range", hex); } }