File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -973,12 +973,15 @@ where
973973 None
974974 } ;
975975
976- let mod_name = match syn:: parse_str :: < proc_macro2:: Ident > ( mod_name) {
977- Ok ( s) => s,
978- Err ( e) => {
979- return Err ( format ! ( "CTParserBuilder::mod_name(\" {}\" ) is not a valid rust identifier due to '{}'" , mod_name, e) . into ( ) )
980- }
981- } ;
976+ let mod_name =
977+ match syn:: parse_str :: < proc_macro2:: Ident > ( mod_name) {
978+ Ok ( s) => s,
979+ Err ( e) => return Err ( format ! (
980+ "CTParserBuilder::mod_name(\" {}\" ) is not a valid rust identifier due to '{}'" ,
981+ mod_name, e
982+ )
983+ . into ( ) ) ,
984+ } ;
982985 let out_tokens = quote ! {
983986 #visibility mod #mod_name {
984987 // At the top so that `user_actions` may contain #![inner_attribute]
@@ -1829,7 +1832,10 @@ A : 'a';"
18291832 Ok ( _) => panic ! ( "Expected error" ) ,
18301833 Err ( e) => {
18311834 let err_string = e. to_string ( ) ;
1832- assert_eq ! ( err_string, "CTParserBuilder::mod_name(\" contains-a-dash_y\" ) is not a valid rust identifier due to 'unexpected token'" ) ;
1835+ assert_eq ! (
1836+ err_string,
1837+ "CTParserBuilder::mod_name(\" contains-a-dash_y\" ) is not a valid rust identifier due to 'unexpected token'"
1838+ ) ;
18331839 }
18341840 }
18351841 }
You can’t perform that action at this time.
0 commit comments