dd4d45062d
The one thing `log` can still do is polymorphically log anything, but debug!, etc. require a format string. With this patch you can equivalently write `debug!(foo)` or `debug!("%?", foo)`
11 lines
109 B
Rust
11 lines
109 B
Rust
enum Numbers {
|
|
Three
|
|
}
|
|
|
|
fn main() {
|
|
debug!(1);
|
|
info!(2.0);
|
|
warn!(Three);
|
|
error!(~[4]);
|
|
}
|