diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-21 15:18:46 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-21 15:18:46 -0700 |
| commit | 45868cd2cedd6bd418ea1c1d795a74c0ef6af975 (patch) | |
| tree | 7f0a78158e24073606c0abed6c575e25e91c0b5e /src/framework | |
| parent | Extract Discord close codes to constants (diff) | |
| download | serenity-45868cd2cedd6bd418ea1c1d795a74c0ef6af975.tar.xz serenity-45868cd2cedd6bd418ea1c1d795a74c0ef6af975.zip | |
Update dependencies
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/buckets.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/buckets.rs b/src/framework/buckets.rs index 711c0fd..8fdaf37 100644 --- a/src/framework/buckets.rs +++ b/src/framework/buckets.rs @@ -1,4 +1,4 @@ -use chrono::UTC; +use chrono::Utc; use std::collections::HashMap; use std::default::Default; @@ -30,7 +30,7 @@ pub(crate) struct Bucket { impl Bucket { pub fn take(&mut self, user_id: u64) -> i64 { - let time = UTC::now().timestamp(); + let time = Utc::now().timestamp(); let user = self.users.entry(user_id) .or_insert_with(MemberRatelimit::default); |