diff options
| author | Zeyla Hellyer <[email protected]> | 2017-08-18 20:50:23 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-08-18 20:50:23 -0700 |
| commit | ea72d05cf755d06d5c7da190e5d240fe4d77038c (patch) | |
| tree | 9cf159a0b15c7819f2dfc2fb20e9c6d62dbf152b /src/http | |
| parent | Clippy lints (diff) | |
| download | serenity-ea72d05cf755d06d5c7da190e5d240fe4d77038c.tar.xz serenity-ea72d05cf755d06d5c7da190e5d240fe4d77038c.zip | |
Fix rustfmt lines that are too long
Apparently rustfmt can't fix some of these, causing it to exit with 3
and therefore failing the build.
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/ratelimiting.rs | 4 |
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 |