aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/mod.rs2
-rw-r--r--src/model/user.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs
index bf3ac07..0817094 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -48,7 +48,7 @@ macro_rules! id_u64 {
($(#[$attr:meta] $name:ident;)*) => {
$(
#[$attr]
- #[derive(Copy, Clone, Debug, Eq, Hash, PartialOrd, Ord, Serialize)]
+ #[derive(Copy, Clone, Default, Debug, Eq, Hash, PartialOrd, Ord, Serialize)]
#[allow(derive_hash_xor_eq)]
pub struct $name(pub u64);
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>,