env::var("XDB_FILEPATH").unwrap_or_else(|_|{letmatches=cmd::get_matches();letxdb_filepath=matches.get_one::<String>("xdb").unwrap();env::set_var("XDB_FILEPATH",xdb_filepath);xdb_filepath.to_owned()});search::global_searcher();println!("ip2region xdb searcher test program, type `quit` to exit");loop{print!("ip2region>> ");std::io::stdout().flush().unwrap();letmutline=String::new();std::io::stdin().read_line(&mutline).unwrap();ifline.contains("quit"){break}letnow=Instant::now();letresult=search::search_by_ip(line.trim());println!("region: {:?}, took: {:?}",result,now.elapsed());}