style: use linked hash map

This commit is contained in:
2020-08-09 13:07:00 +08:00
parent 547d8c9070
commit a6a6a247c1
2 changed files with 5 additions and 4 deletions

View File

@@ -18,3 +18,4 @@ actix-web = "2"
actix-rt = "1"
bytes = "0.5"
futures-core = "0.3"
linked-hash-map = "0.5"

View File

@@ -5,9 +5,9 @@ mod error;
use std::pin::Pin;
use std::task::{ Context, Poll };
use std::collections::HashMap;
use bytes::Bytes;
use clap::{ App, Arg };
use linked_hash_map::LinkedHashMap;
use actix_web::{ web, HttpServer, HttpRequest, HttpResponse };
use error::*;
@@ -70,8 +70,8 @@ async fn main() -> std::io::Result<()> {
.await
}
fn parse_query_string(query_string: &str) -> HashMap<String, Vec<String>> {
let map = HashMap::new();
fn parse_query_string(query_string: &str) -> LinkedHashMap<String, Vec<String>> {
let map = LinkedHashMap::new();
// TODO ...
map
}