diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-30 21:05:27 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-30 21:05:27 -0700 |
| commit | 1395a1fe54aadfb5292d82a2a89a14d0d5ee7adc (patch) | |
| tree | b63263826a6a88c3526a728159603a1c4a049bc3 /src/http | |
| parent | Include more info on ratelimiting debugs (diff) | |
| download | serenity-1395a1fe54aadfb5292d82a2a89a14d0d5ee7adc.tar.xz serenity-1395a1fe54aadfb5292d82a2a89a14d0d5ee7adc.zip | |
Fix ratelimiting::ROUTES doctest
Values are now wrapped within an Arc<Mutex>, so the example needs to
obtain a lock and unwrap it.
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/ratelimiting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs index 9512360..95318ae 100644 --- a/src/http/ratelimiting.rs +++ b/src/http/ratelimiting.rs @@ -83,7 +83,7 @@ lazy_static! { /// let routes = ROUTES.lock().unwrap(); /// /// if let Some(route) = routes.get(&Route::ChannelsId(7)) { - /// println!("Reset time at: {}", route.reset); + /// println!("Reset time at: {}", route.lock().unwrap().reset); /// } /// ``` /// |