From 867b5074aa2d01ba72a2de89865fb7a7aa25a76a Mon Sep 17 00:00:00 2001 From: Jason Dusek Date: Fri, 11 Mar 2016 00:41:11 -0800 Subject: [PATCH] Use braces, not parens, for macro def --- src/bin/rustfmt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/rustfmt.rs b/src/bin/rustfmt.rs index ee5877e25ca..062c60e1065 100644 --- a/src/bin/rustfmt.rs +++ b/src/bin/rustfmt.rs @@ -28,14 +28,14 @@ use std::str::FromStr; use getopts::{Matches, Options}; -macro_rules! msg( +macro_rules! msg { ($($arg:tt)*) => ( match writeln!(&mut ::std::io::stderr(), $($arg)* ) { Ok(_) => {}, Err(x) => panic!("Unable to write to stderr: {}", x), } ) -); +} /// Rustfmt operations. enum Operation {