From 45868cd2cedd6bd418ea1c1d795a74c0ef6af975 Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Wed, 21 Jun 2017 15:18:46 -0700 Subject: Update dependencies --- src/http/ratelimiting.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http') diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs index dd56d6d..a674537 100644 --- a/src/http/ratelimiting.rs +++ b/src/http/ratelimiting.rs @@ -40,7 +40,7 @@ //! [Taken from]: https://discordapp.com/developers/docs/topics/rate-limits#rate-limits #![allow(zero_ptr)] -use chrono::UTC; +use chrono::Utc; use hyper::client::{RequestBuilder, Response}; use hyper::header::Headers; use hyper::status::StatusCode; @@ -439,7 +439,7 @@ impl RateLimit { return; } - let current_time = UTC::now().timestamp(); + let current_time = Utc::now().timestamp(); // The reset was in the past, so we're probably good. if current_time > self.reset { -- cgit v1.2.3