std: Remove usage of fmt!
This commit is contained in:
parent
aaf6cc3a84
commit
a8ba31dbf3
68 changed files with 497 additions and 509 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue