File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -687,7 +687,9 @@ where
687687
688688 match self . chr0 {
689689 Some ( '0' ..='9' ) => return Some ( self . lex_number ( ) ) ,
690- Some ( '_' ) | Some ( 'a' ..='z' ) | Some ( 'A' ..='Z' ) => return Some ( self . lex_identifier ( ) ) ,
690+ Some ( '_' ) | Some ( 'a' ..='z' ) | Some ( 'A' ..='Z' ) => {
691+ return Some ( self . lex_identifier ( ) )
692+ }
691693 Some ( '#' ) => {
692694 self . lex_comment ( ) ;
693695 continue ;
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ pub type StdlibInitFunc = Box<dyn Fn(&PyContext) -> PyObjectRef>;
2525
2626pub fn get_module_inits ( ) -> HashMap < String , StdlibInitFunc > {
2727 let mut modules = HashMap :: new ( ) ;
28- modules. insert ( "ast" . to_string ( ) , Box :: new ( ast:: mk_module) as StdlibInitFunc ) ;
28+ modules. insert (
29+ "ast" . to_string ( ) ,
30+ Box :: new ( ast:: mk_module) as StdlibInitFunc ,
31+ ) ;
2932 modules. insert ( "dis" . to_string ( ) , Box :: new ( dis:: mk_module) ) ;
3033 modules. insert ( "json" . to_string ( ) , Box :: new ( json:: mk_module) ) ;
3134 modules. insert ( "keyword" . to_string ( ) , Box :: new ( keyword:: mk_module) ) ;
Original file line number Diff line number Diff line change @@ -134,5 +134,6 @@ pub fn mk_module(ctx: &PyContext) -> PyObjectRef {
134134}
135135
136136pub fn setup_browser_module ( vm : & mut VirtualMachine ) {
137- vm. stdlib_inits . insert ( BROWSER_NAME . to_string ( ) , Box :: new ( mk_module) ) ;
137+ vm. stdlib_inits
138+ . insert ( BROWSER_NAME . to_string ( ) , Box :: new ( mk_module) ) ;
138139}
You can’t perform that action at this time.
0 commit comments