File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,10 @@ pub fn assert_instr(
147
147
}
148
148
} ;
149
149
// why? necessary now to get tests to work?
150
- let tokens: TokenStream = tokens. to_string ( ) . parse ( ) . expect ( "cannot parse tokenstream" ) ;
150
+ let tokens: TokenStream = tokens
151
+ . to_string ( )
152
+ . parse ( )
153
+ . expect ( "cannot parse tokenstream" ) ;
151
154
152
155
let tokens: TokenStream = quote ! {
153
156
#item
Original file line number Diff line number Diff line change @@ -260,12 +260,7 @@ fn extract_path_ident(path: &syn::Path) -> syn::Ident {
260
260
if path. segments . len ( ) != 1 {
261
261
panic ! ( "unsupported path that needs name resolution" )
262
262
}
263
- match path
264
- . segments
265
- . first ( )
266
- . expect ( "segment not found" )
267
- . arguments
268
- {
263
+ match path. segments . first ( ) . expect ( "segment not found" ) . arguments {
269
264
syn:: PathArguments :: None => { }
270
265
_ => panic ! ( "unsupported path that has path arguments" ) ,
271
266
}
@@ -407,7 +402,10 @@ impl syn::parse::Parse for RustcArgsRequiredConst {
407
402
let list =
408
403
syn:: punctuated:: Punctuated :: < syn:: LitInt , Token ! [ , ] > :: parse_terminated ( & content) ?;
409
404
Ok ( Self {
410
- args : list. into_iter ( ) . map ( |a| a. base10_parse :: < usize > ( ) ) . collect :: < syn:: Result < _ > > ( ) ?,
405
+ args : list
406
+ . into_iter ( )
407
+ . map ( |a| a. base10_parse :: < usize > ( ) )
408
+ . collect :: < syn:: Result < _ > > ( ) ?,
411
409
} )
412
410
}
413
411
}
You can’t perform that action at this time.
0 commit comments