aboutsummaryrefslogtreecommitdiff
path: root/src/model/mod.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-14 22:06:54 -0800
committerAustin Hellyer <[email protected]>2016-11-14 22:06:54 -0800
commit83e57f9191c44104addc56537a5fb534b0c4382f (patch)
treef845841ae811c75486a04425bb31ccbaf2632183 /src/model/mod.rs
parentAllow current user to nickname themselves (diff)
downloadserenity-83e57f9191c44104addc56537a5fb534b0c4382f.tar.xz
serenity-83e57f9191c44104addc56537a5fb534b0c4382f.zip
Decode embed/role colours into Colour struct
This is for a little bit of ergonomics, and is of such a minute cost that it is worth it to just directly decode the u32's received for Role/Embed colours into the Colour struct.
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 fc226f9..f21da09 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -28,7 +28,7 @@ use self::utils::*;
use std::collections::HashMap;
use std::fmt;
use ::internal::prelude::*;
-use ::utils::decode_array;
+use ::utils::{Colour, decode_array};
// All of the enums and structs are imported here. These are built from the
// build script located at `./build.rs`.