aboutsummaryrefslogtreecommitdiff
path: root/src/model/user.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-08 22:49:22 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:48:18 -0700
commit0881e18c07113cc7b2f6cec38cadcb1ea03dda12 (patch)
treeb96aaf330f4e0295a71b15257443efa1a28946c0 /src/model/user.rs
parentAdd an impl for `&str` (diff)
downloadserenity-0881e18c07113cc7b2f6cec38cadcb1ea03dda12.tar.xz
serenity-0881e18c07113cc7b2f6cec38cadcb1ea03dda12.zip
Generate `Default` for CurrentUser and use it in `Cache::default`
Diffstat (limited to 'src/model/user.rs')
-rw-r--r--src/model/user.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index 3ae33aa..39efa10 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -21,7 +21,7 @@ use CACHE;
use http::{self, GuildPagination};
/// Information about the current user.
-#[derive(Clone, Debug, Deserialize)]
+#[derive(Clone, Default, Debug, Deserialize)]
pub struct CurrentUser {
pub id: UserId,
pub avatar: Option<String>,