From 59892f1511161ebff066d5e71b76b09f9e872746 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 30 Oct 2014 00:23:09 -0400 Subject: [PATCH] fail -> panic --- src/offset.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/offset.rs b/src/offset.rs index 7d452d5..d65e197 100644 --- a/src/offset.rs +++ b/src/offset.rs @@ -54,9 +54,9 @@ impl LocalResult { /// Returns the single unique conversion result, or fails accordingly. pub fn unwrap(self) -> T { match self { - NoResult => fail!("No such local time"), + NoResult => panic!("No such local time"), Single(t) => t, - Ambiguous(t1,t2) => fail!("Ambiguous local time, ranging from {} to {}", t1, t2), + Ambiguous(t1,t2) => panic!("Ambiguous local time, ranging from {} to {}", t1, t2), } } }