From 267270893122364378b764c7bf1a936843dd82e6 Mon Sep 17 00:00:00 2001 From: Mishio595 Date: Mon, 9 Jul 2018 22:51:43 -0600 Subject: Remove other edits --- src/utils/colour.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/utils') diff --git a/src/utils/colour.rs b/src/utils/colour.rs index cac3d46..3b31572 100644 --- a/src/utils/colour.rs +++ b/src/utils/colour.rs @@ -190,20 +190,6 @@ impl Colour { /// [`g`]: #method.g /// [`b`]: #method.b pub fn tuple(&self) -> (u8, u8, u8) { (self.r(), self.g(), self.b()) } - - /// Returns a hexadecimal string of this Colour. - /// - /// This is equivalent to passing the integer value through `std::fmt::UpperHex` with 0 padding - /// and 6 width - /// - /// # Examples - /// - /// ```rust - /// use serenity::utils::Colour; - /// - /// assert_eq!(Colour::new(6573123).hex(), String::from("644C43")); - /// ``` - pub fn hex(&self) -> String { format!("{:06X}", self.0) } } impl From for Colour { -- cgit v1.2.3