From 4196eeff40ac0980e3c652635280f8d8a65bc231 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Fri, 12 Jun 2020 21:03:49 +0200 Subject: [PATCH] remove curlies warnings --- src/request.rs | 2 +- src/test/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/request.rs b/src/request.rs index ff63bf9..21fd367 100644 --- a/src/request.rs +++ b/src/request.rs @@ -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. diff --git a/src/test/mod.rs b/src/test/mod.rs index 0fffdb8..5d12af7 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -19,7 +19,7 @@ type RequestHandler = dyn Fn(&Unit) -> Result + Send + 'static; lazy_static! { pub(crate) static ref TEST_HANDLERS: Arc>>> = - { Arc::new(Mutex::new(HashMap::new())) }; + Arc::new(Mutex::new(HashMap::new())); } pub(crate) fn set_handler(path: &str, handler: H)