Skip to content

Commit 705737a

Browse files
committed
Changed fail macro to panic (compatibility with rust-lang/rust#17894)
1 parent d68da4c commit 705737a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cube.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Cube {
4242
3 => Quad::new(0b011, 0b111, 0b110, 0b010),
4343
4 => Quad::new(0b000, 0b010, 0b110, 0b100),
4444
5 => Quad::new(0b101, 0b111, 0b011, 0b001),
45-
idx => fail!("{} face is higher then 6", idx)
45+
idx => panic!("{} face is higher then 6", idx)
4646
}
4747
}
4848

0 commit comments

Comments
 (0)