aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/colour.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils/colour.rs b/src/utils/colour.rs
index a678a32..fc50f22 100644
--- a/src/utils/colour.rs
+++ b/src/utils/colour.rs
@@ -201,11 +201,9 @@ impl Colour {
/// ```rust
/// use serenity::utils::Colour;
///
- /// assert_eq!(Colour::new(6573123).hex(), "644C43");
+ /// assert_eq!(Colour::new(6573123).hex(), String::from("644C43"));
/// ```
- pub fn hex(&self) -> String {
- format!("{:06X}", self.0)
- }
+ pub fn hex(&self) -> String { format!("{:06X}", self.0) }
}
impl From<i32> for Colour {