style: use linked hash map
This commit is contained in:
@@ -18,3 +18,4 @@ actix-web = "2"
|
|||||||
actix-rt = "1"
|
actix-rt = "1"
|
||||||
bytes = "0.5"
|
bytes = "0.5"
|
||||||
futures-core = "0.3"
|
futures-core = "0.3"
|
||||||
|
linked-hash-map = "0.5"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ mod error;
|
|||||||
|
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::task::{ Context, Poll };
|
use std::task::{ Context, Poll };
|
||||||
use std::collections::HashMap;
|
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use clap::{ App, Arg };
|
use clap::{ App, Arg };
|
||||||
|
use linked_hash_map::LinkedHashMap;
|
||||||
use actix_web::{ web, HttpServer, HttpRequest, HttpResponse };
|
use actix_web::{ web, HttpServer, HttpRequest, HttpResponse };
|
||||||
|
|
||||||
use error::*;
|
use error::*;
|
||||||
@@ -70,8 +70,8 @@ async fn main() -> std::io::Result<()> {
|
|||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_query_string(query_string: &str) -> HashMap<String, Vec<String>> {
|
fn parse_query_string(query_string: &str) -> LinkedHashMap<String, Vec<String>> {
|
||||||
let map = HashMap::new();
|
let map = LinkedHashMap::new();
|
||||||
|
// TODO ...
|
||||||
map
|
map
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user