Use braces, not parens, for macro def
This commit is contained in:
parent
223df90c81
commit
867b5074aa
1 changed files with 2 additions and 2 deletions
|
@ -28,14 +28,14 @@ use std::str::FromStr;
|
||||||
|
|
||||||
use getopts::{Matches, Options};
|
use getopts::{Matches, Options};
|
||||||
|
|
||||||
macro_rules! msg(
|
macro_rules! msg {
|
||||||
($($arg:tt)*) => (
|
($($arg:tt)*) => (
|
||||||
match writeln!(&mut ::std::io::stderr(), $($arg)* ) {
|
match writeln!(&mut ::std::io::stderr(), $($arg)* ) {
|
||||||
Ok(_) => {},
|
Ok(_) => {},
|
||||||
Err(x) => panic!("Unable to write to stderr: {}", x),
|
Err(x) => panic!("Unable to write to stderr: {}", x),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
}
|
||||||
|
|
||||||
/// Rustfmt operations.
|
/// Rustfmt operations.
|
||||||
enum Operation {
|
enum Operation {
|
||||||
|
|
Loading…
Reference in a new issue