diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-27 17:02:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-30 23:21:18 -0700 |
| commit | a8ba31dbf3e7d80a069bc486a35eff8357282b68 (patch) | |
| tree | 8a00829d527c443d16988b98cd7c97f1d3d4dac6 /src/libstd/cell.rs | |
| parent | aaf6cc3a841095a95a9c74a6a2a3709dffd7a4e9 (diff) | |
std: Remove usage of fmt!
Diffstat (limited to 'src/libstd/cell.rs')
| -rw-r--r-- | src/libstd/cell.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/cell.rs b/src/libstd/cell.rs index a1459b780df..4bbb0a5935a 100644 --- a/src/libstd/cell.rs +++ b/src/libstd/cell.rs @@ -44,7 +44,7 @@ impl<T> Cell<T> { pub fn take(&self) -> T { let this = unsafe { transmute_mut(self) }; if this.is_empty() { - fail!("attempt to take an empty cell"); + fail2!("attempt to take an empty cell"); } this.value.take_unwrap() @@ -60,7 +60,7 @@ impl<T> Cell<T> { pub fn put_back(&self, value: T) { let this = unsafe { transmute_mut(self) }; if !this.is_empty() { - fail!("attempt to put a value back into a full cell"); + fail2!("attempt to put a value back into a full cell"); } this.value = Some(value); } |
