fn load_local_file() -> Option<TomlWsssConfig> {
  env::current_exe()
    .ok()
    .and_then(|mut dir| {
      dir.pop();
      Some(dir)
    })
    .and_then(|file| TomlWsssConfig::parse_file(&file.to_string_lossy()).ok())
}
/// Try and load config from same directory as executable
Try and load config from same directory as executable
Try and load config from same directory as executable
fn load_local_file() -> Option<TomlWsssConfig> {
  env::current_exe()
    .ok()
    .and_then(|mut dir| {
      dir.pop();
      Some(dir)
    })
    .and_then(|file| TomlWsssConfig::parse_file(&file.to_string_lossy()).ok())
}
fn load_local_file ( ) -> Option < TomlWsssConfig > { env :: current_exe ( ) . ok ( ) . and_then ( | mut dir | { dir . pop ( ) ; Some ( dir ) } ) . and_then ( | file | TomlWsssConfig :: parse_file ( & file . to_string_lossy ( ) ) . ok ( ) ) }
Try and load config from same directory as executable
Try and load config from same directory as executable