From 705737a3d06de5de7476aa5aef2f67da73dbe3dd Mon Sep 17 00:00:00 2001 From: George Burton Date: Thu, 30 Oct 2014 22:34:03 +0000 Subject: [PATCH] Changed fail macro to panic (compatibility with rust-lang/rust#17894) --- src/cube.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cube.rs b/src/cube.rs index 81cad39..63a32d5 100644 --- a/src/cube.rs +++ b/src/cube.rs @@ -42,7 +42,7 @@ impl Cube { 3 => Quad::new(0b011, 0b111, 0b110, 0b010), 4 => Quad::new(0b000, 0b010, 0b110, 0b100), 5 => Quad::new(0b101, 0b111, 0b011, 0b001), - idx => fail!("{} face is higher then 6", idx) + idx => panic!("{} face is higher then 6", idx) } }