diff options
| author | acdenisSK <[email protected]> | 2017-10-08 22:49:22 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-08 22:49:22 +0200 |
| commit | 09a8a444f5bcefaee8b83dc129a3cea2de8792f9 (patch) | |
| tree | 8924d08ba98c8dfe5cf51c85cd07a03feb946f9d /src/model/user.rs | |
| parent | Add an impl for `&str` (diff) | |
| download | serenity-09a8a444f5bcefaee8b83dc129a3cea2de8792f9.tar.xz serenity-09a8a444f5bcefaee8b83dc129a3cea2de8792f9.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>, |