From 20ffaca6e22a68fd2213a7447f5459a4fae0411f Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 30 Oct 2014 00:26:19 -0400 Subject: [PATCH] fail -> panic --- allegro/src/internal/bitmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allegro/src/internal/bitmap.rs b/allegro/src/internal/bitmap.rs index 8300aceb7b..8320872001 100644 --- a/allegro/src/internal/bitmap.rs +++ b/allegro/src/internal/bitmap.rs @@ -227,7 +227,7 @@ unsafe fn handle_bitmap_destruction(bmp: *mut ALLEGRO_BITMAP, is_sub_bitmap: boo let target = al_get_target_bitmap(); if target.is_null() { - fail!("Null target bitmap!"); + panic!("Null target bitmap!"); } if target == bmp || (!is_sub_bitmap && al_get_parent_bitmap(target) == bmp) {