diff options
| author | thelearnerofcode <[email protected]> | 2017-11-07 14:51:57 -0800 |
|---|---|---|
| committer | thelearnerofcode <[email protected]> | 2017-11-07 14:51:57 -0800 |
| commit | e5a6f3a8ed367bd3d780fd23a0a27f8a80567879 (patch) | |
| tree | 9b51a6cd25ec63f8a0b2143827e675b04f9bb1af /src/model | |
| parent | Into<String> -> Display (diff) | |
| download | serenity-e5a6f3a8ed367bd3d780fd23a0a27f8a80567879.tar.xz serenity-e5a6f3a8ed367bd3d780fd23a0a27f8a80567879.zip | |
Add Debug derives to more public types
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/utils.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/model/utils.rs b/src/model/utils.rs index fd103c0..26ec7fe 100644 --- a/src/model/utils.rs +++ b/src/model/utils.rs @@ -187,6 +187,7 @@ pub fn user_has_perms(channel_id: ChannelId, mut permissions: Permissions) -> Re Ok(permissions.is_empty()) } +#[derive(Debug)] pub struct U16Visitor; impl<'de> Visitor<'de> for U16Visitor { @@ -216,6 +217,7 @@ impl<'de> Visitor<'de> for U16Visitor { fn visit_u64<E: DeError>(self, v: u64) -> StdResult<Self::Value, E> { Ok(v as u16) } } +#[derive(Debug)] pub struct U64Visitor; impl<'de> Visitor<'de> for U64Visitor { |