diff options
| author | acdenisSK <[email protected]> | 2017-10-08 22:49:22 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:48:18 -0700 |
| commit | 0881e18c07113cc7b2f6cec38cadcb1ea03dda12 (patch) | |
| tree | b96aaf330f4e0295a71b15257443efa1a28946c0 /src/model/user.rs | |
| parent | Add an impl for `&str` (diff) | |
| download | serenity-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.rs | 2 |
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>, |