From 1395a1fe54aadfb5292d82a2a89a14d0d5ee7adc Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Tue, 30 May 2017 21:05:27 -0700 Subject: [PATCH] Fix ratelimiting::ROUTES doctest Values are now wrapped within an Arc, so the example needs to obtain a lock and unwrap it. --- src/http/ratelimiting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs index 95123602b7c..95318aeec2e 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); /// } /// ``` ///