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)