diff options
| author | Austin Hellyer <[email protected]> | 2017-01-13 03:57:12 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-13 09:17:05 -0800 |
| commit | a8acd6138741a6e5268141ac4ce902561931d353 (patch) | |
| tree | f3cc01856d84bb34feca0695775b32208fb6ad9f /src/utils/builder/create_embed.rs | |
| parent | Fix build (diff) | |
| download | serenity-a8acd6138741a6e5268141ac4ce902561931d353.tar.xz serenity-a8acd6138741a6e5268141ac4ce902561931d353.zip | |
Convert Colour to be a tuple struct
The struct only has one field (`value`) anyway.
Diffstat (limited to 'src/utils/builder/create_embed.rs')
| -rw-r--r-- | src/utils/builder/create_embed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/builder/create_embed.rs b/src/utils/builder/create_embed.rs index d33db8a..86d5b11 100644 --- a/src/utils/builder/create_embed.rs +++ b/src/utils/builder/create_embed.rs @@ -63,7 +63,7 @@ impl CreateEmbed { /// Set the colour of the left-hand side of the embed. pub fn colour<C: Into<Colour>>(mut self, colour: C) -> Self { - self.0.insert("color".to_owned(), Value::U64(colour.into().value as u64)); + self.0.insert("color".to_owned(), Value::U64(colour.into().0 as u64)); CreateEmbed(self.0) } |