File tree 7 files changed +16
-54
lines changed
7 files changed +16
-54
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
// rustfmt-format_macro_bodies: true
2
2
3
3
macro_rules! foo {
4
- ( $a: ident : $b: ty) => {
5
- $a( 42 ) : $b;
6
- } ;
7
- ( $a: ident $b: ident $c: ident) => {
8
- $a = $b + $c;
9
- } ;
4
+ ( $a: ident : $b: ty) => { $a( 42 ) : $b; } ;
5
+ ( $a: ident $b: ident $c: ident) => { $a=$b+$c; } ;
10
6
}
Original file line number Diff line number Diff line change 1
1
// rustfmt-format_macro_matchers: false
2
2
3
3
macro_rules! foo {
4
- ( $a: ident : $b: ty) => {
5
- $a( 42 ) : $b;
6
- } ;
7
- ( $a: ident $b: ident $c: ident) => {
8
- $a = $b + $c;
9
- } ;
4
+ ( $a: ident : $b: ty) => { $a( 42 ) : $b; } ;
5
+ ( $a: ident $b: ident $c: ident) => { $a=$b+$c; } ;
10
6
}
Original file line number Diff line number Diff line change 1
1
// rustfmt-format_macro_matchers: true
2
2
3
3
macro_rules! foo {
4
- ( $a: ident : $b: ty) => {
5
- $a( 42 ) : $b;
6
- } ;
7
- ( $a: ident $b: ident $c: ident) => {
8
- $a = $b + $c;
9
- } ;
4
+ ( $a: ident : $b: ty) => { $a( 42 ) : $b; } ;
5
+ ( $a: ident $b: ident $c: ident) => { $a=$b+$c; } ;
10
6
}
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ fn main() {
122
122
20 , 21 , 22 ) ;
123
123
124
124
// #1092
125
- chain ! ( input, a: take!( max_size) , || [ ] ) ;
125
+ chain ! ( input, a: take!( max_size) , || [ ] ) ;
126
126
127
127
// #2727
128
128
foo ! ( "bar" ) ;
@@ -156,17 +156,13 @@ fn issue1178() {
156
156
}
157
157
158
158
fn issue1739 ( ) {
159
- sql_function ! (
160
- add_rss_item,
161
- add_rss_item_t,
162
- (
163
- a: types:: Integer ,
164
- b: types:: Timestamptz ,
165
- c: types:: Text ,
166
- d: types:: Text ,
167
- e: types:: Text
168
- )
169
- ) ;
159
+ sql_function ! ( add_rss_item,
160
+ add_rss_item_t,
161
+ ( a: types:: Integer ,
162
+ b: types:: Timestamptz ,
163
+ c: types:: Text ,
164
+ d: types:: Text ,
165
+ e: types:: Text ) ) ;
170
166
171
167
w. slice_mut ( s ! [
172
168
..,
@@ -232,7 +228,7 @@ fn issue_3174() {
232
228
"debugMessage" : debug. message,
233
229
} )
234
230
} else {
235
- json ! ( { "errorKind" : format!( "{:?}" , error. err_kind( ) ) } )
231
+ json ! ( { "errorKind" : format!( "{:?}" , error. err_kind( ) ) } )
236
232
} ;
237
233
}
238
234
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ fn issue3117() {
129
129
fn issue3139 ( ) {
130
130
assert_eq ! (
131
131
to_json_value( & None :: <i32 >) . unwrap( ) ,
132
- json!( { "test" : None :: <i32 > } )
132
+ json!( { "test" : None :: <i32 > } )
133
133
) ;
134
134
}
135
135
You can’t perform that action at this time.
0 commit comments