aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ratelimiting.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs
index 382661c..039f15d 100644
--- a/src/http/ratelimiting.rs
+++ b/src/http/ratelimiting.rs
@@ -89,7 +89,9 @@ lazy_static! {
///
/// [`RateLimit`]: struct.RateLimit.html
/// [`Route`]: enum.Route.html
- pub static ref ROUTES: Arc<Mutex<HashMap<Route, Arc<Mutex<RateLimit>>>>> = Arc::new(Mutex::new(HashMap::default()));
+ pub static ref ROUTES: Arc<Mutex<HashMap<Route, Arc<Mutex<RateLimit>>>>> = {
+ Arc::new(Mutex::new(HashMap::default()))
+ };
}
/// A representation of all routes registered within the library. These are safe