@@ -36,7 +36,7 @@ fn main() {
3636 embed_path. join ( "static-functions.c" ) ,
3737 code_dir. join ( "static-functions.c" ) ,
3838 )
39- . expect ( "Failed to copy static-functions.c" ) ;
39+ . expect ( "Failed to copy static-functions.c" ) ;
4040
4141 // Copy wrapper.h
4242 let wrapper_out = out_path. join ( "wrapper.h" ) ;
@@ -84,10 +84,10 @@ fn main() {
8484 // -- END MSVC SUPPORT --
8585
8686 let mut build = cc:: Build :: new ( ) ;
87- build. files ( files. iter ( ) . map ( |f| code_dir. join ( f) ) )
87+ build
88+ . files ( files. iter ( ) . map ( |f| code_dir. join ( f) ) )
8889 . define ( "_GNU_SOURCE" , None )
8990 . define ( "WIN32_LEAN_AND_MEAN" , None )
90-
9191 . define (
9292 "CONFIG_VERSION" ,
9393 format ! ( "\" {}\" " , quickjs_version. trim( ) ) . as_str ( ) ,
@@ -103,10 +103,10 @@ fn main() {
103103 . flag_if_supported ( "-funsigned-char" )
104104 . flag_if_supported ( "-Wno-cast-function-type" ) ;
105105
106-
107106 #[ cfg( feature = "bellard" ) ]
108107 if target_env == "msvc" {
109- build. define ( "_CRT_SECURE_NO_WARNINGS" , None )
108+ build
109+ . define ( "_CRT_SECURE_NO_WARNINGS" , None )
110110 . flag_if_supported ( "/utf-8" ) ;
111111 }
112112
@@ -129,4 +129,4 @@ fn main() {
129129 bindings
130130 . write_to_file ( out_path. join ( "bindings.rs" ) )
131131 . expect ( "Couldn't write bindings!" ) ;
132- }
132+ }
0 commit comments