File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -496,10 +496,9 @@ macro_rules! r#try {
496
496
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
497
497
#[ cfg_attr( not( test) , rustc_diagnostic_item = "write_macro" ) ]
498
498
macro_rules! write {
499
- ( $dst: expr, $( $arg: tt) * ) => { {
500
- let result = $dst. write_fmt( $crate:: format_args!( $( $arg) * ) ) ;
501
- result
502
- } } ;
499
+ ( $dst: expr, $( $arg: tt) * ) => {
500
+ $dst. write_fmt( $crate:: format_args!( $( $arg) * ) )
501
+ } ;
503
502
}
504
503
505
504
/// Write formatted data into a buffer, with a newline appended.
@@ -554,10 +553,9 @@ macro_rules! writeln {
554
553
( $dst: expr $( , ) ?) => {
555
554
$crate:: write!( $dst, "\n " )
556
555
} ;
557
- ( $dst: expr, $( $arg: tt) * ) => { {
558
- let result = $dst. write_fmt( $crate:: format_args_nl!( $( $arg) * ) ) ;
559
- result
560
- } } ;
556
+ ( $dst: expr, $( $arg: tt) * ) => {
557
+ $dst. write_fmt( $crate:: format_args_nl!( $( $arg) * ) )
558
+ } ;
561
559
}
562
560
563
561
/// Indicates unreachable code.
You can’t perform that action at this time.
0 commit comments