remove curlies warnings

This commit is contained in:
Martin Algesten
2020-06-12 21:03:49 +02:00
parent c5bc27260b
commit 4196eeff40
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ use super::SerdeValue;
lazy_static! {
static ref URL_BASE: Url =
{ Url::parse("http://localhost/").expect("Failed to parse URL_BASE") };
Url::parse("http://localhost/").expect("Failed to parse URL_BASE");
}
/// Request instances are builders that creates a request.

View File

@@ -19,7 +19,7 @@ type RequestHandler = dyn Fn(&Unit) -> Result<Stream, Error> + Send + 'static;
lazy_static! {
pub(crate) static ref TEST_HANDLERS: Arc<Mutex<HashMap<String, Box<RequestHandler>>>> =
{ Arc::new(Mutex::new(HashMap::new())) };
Arc::new(Mutex::new(HashMap::new()));
}
pub(crate) fn set_handler<H>(path: &str, handler: H)