remove curlies warnings
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user