style: run rustfmt
This commit is contained in:
parent
dfb4ae66e6
commit
da33147f5f
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,6 @@ impl URL {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let value = key_value
|
let value = key_value
|
||||||
.next()
|
.next()
|
||||||
.unwrap_or("")
|
.unwrap_or("")
|
||||||
|
@ -141,7 +140,8 @@ mod tests {
|
||||||
assert_eq!(url.query.get("query").unwrap(), "string");
|
assert_eq!(url.query.get("query").unwrap(), "string");
|
||||||
assert_eq!(url.query.get("another").unwrap(), "one");
|
assert_eq!(url.query.get("another").unwrap(), "one");
|
||||||
|
|
||||||
let url = URL::new("/path/to/resource?query=string&another=one&third=3".to_string()).unwrap();
|
let url =
|
||||||
|
URL::new("/path/to/resource?query=string&another=one&third=3".to_string()).unwrap();
|
||||||
assert_eq!(url.path, "/path/to/resource");
|
assert_eq!(url.path, "/path/to/resource");
|
||||||
assert_eq!(url.query.len(), 3);
|
assert_eq!(url.query.len(), 3);
|
||||||
assert_eq!(url.query.get("query").unwrap(), "string");
|
assert_eq!(url.query.get("query").unwrap(), "string");
|
||||||
|
|
|
@ -11,8 +11,8 @@ mod constants;
|
||||||
mod handlers;
|
mod handlers;
|
||||||
mod http;
|
mod http;
|
||||||
mod icons;
|
mod icons;
|
||||||
mod threads;
|
|
||||||
mod macros;
|
mod macros;
|
||||||
|
mod threads;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("luciders starting...");
|
println!("luciders starting...");
|
||||||
|
|
Loading…
Reference in a new issue