Remove double semicolons; silence test warnings.

This commit is contained in:
Sergio Benitez 2019-09-09 16:52:36 -07:00
parent 2b9c4197d8
commit 0ee3205a68
3 changed files with 4 additions and 3 deletions

View File

@ -70,6 +70,7 @@ fn post2(
format!("({}) ({})", string, uri.to_string())
}
#[allow(dead_code)]
#[post("/<_unused_param>?<_unused_query>", data="<_unused_data>")]
fn test_unused_params(_unused_param: String, _unused_query: String, _unused_data: Data) {
}

View File

@ -3,7 +3,7 @@ use rocket::local::Client;
use rocket::http::{ContentType, Status};
fn test(uri: &str, content_type: ContentType, status: Status, body: String) {
let client = Client::new(rocket()).unwrap();;
let client = Client::new(rocket()).unwrap();
let mut response = client.get(uri).header(content_type).dispatch();
assert_eq!(response.status(), status);
assert_eq!(response.body_string(), Some(body));
@ -30,7 +30,7 @@ fn test_echo() {
#[test]
fn test_upload() {
let client = Client::new(rocket()).unwrap();;
let client = Client::new(rocket()).unwrap();
let expected_body = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, \
sed do eiusmod tempor incididunt ut labore et dolore \
magna aliqua".to_string();

View File

@ -2,7 +2,7 @@ use rocket::local::Client;
use rocket::http::Status;
fn register_hit(client: &Client) {
let response = client.get("/").dispatch();;
let response = client.get("/").dispatch();
assert_eq!(response.status(), Status::Ok);
}