aboutsummaryrefslogtreecommitdiff
path: root/src/model/mod.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-08 22:49:22 +0200
committeracdenisSK <[email protected]>2017-10-08 22:49:22 +0200
commit09a8a444f5bcefaee8b83dc129a3cea2de8792f9 (patch)
tree8924d08ba98c8dfe5cf51c85cd07a03feb946f9d /src/model/mod.rs
parentAdd an impl for `&str` (diff)
downloadserenity-09a8a444f5bcefaee8b83dc129a3cea2de8792f9.tar.xz
serenity-09a8a444f5bcefaee8b83dc129a3cea2de8792f9.zip
Generate `Default` for CurrentUser and use it in `Cache::default`
Diffstat (limited to 'src/model/mod.rs')
-rw-r--r--src/model/mod.rs2
1 files changed, 1 insertions, 1 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);