@@ -310,16 +310,15 @@ fn add_stdlib(vm: &mut VirtualMachine) {
310310//github.com/ Create settings by examining command line arguments and environment
311311//github.com/ variables.
312312fn create_settings ( matches : & ArgMatches ) -> PySettings {
313- let mut settings = PySettings {
314- isolated : matches. is_present ( "isolate" ) ,
315- ignore_environment : matches. is_present ( "ignore-environment" ) ,
316- interactive : !matches. is_present ( "c" )
317- && !matches. is_present ( "m" )
318- && ( !matches. is_present ( "script" ) || matches. is_present ( "inspect" ) ) ,
319- bytes_warning : matches. occurrences_of ( "bytes-warning" ) ,
320- no_site : matches. is_present ( "no-site" ) ,
321- ..Default :: default ( )
322- } ;
313+ let mut settings = PySettings :: default ( ) ;
314+ settings. isolated = matches. is_present ( "isolate" ) ;
315+ settings. ignore_environment = matches. is_present ( "ignore-environment" ) ;
316+ settings. interactive = !matches. is_present ( "c" )
317+ && !matches. is_present ( "m" )
318+ && ( !matches. is_present ( "script" ) || matches. is_present ( "inspect" ) ) ;
319+ settings. bytes_warning = matches. occurrences_of ( "bytes-warning" ) ;
320+ settings. no_site = matches. is_present ( "no-site" ) ;
321+
323322 let ignore_environment = settings. ignore_environment || settings. isolated ;
324323
325324 // when rustpython-vm/pylib is enabled, PySettings::default().path_list has pylib::LIB_PATH
0 commit comments