Use braces, not parens, for macro def

This commit is contained in:
Jason Dusek 2016-03-11 00:41:11 -08:00
parent 223df90c81
commit 867b5074aa

View file

@ -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 {