diff --git a/src/main.rs b/src/main.rs index 81f8722..4bc01e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -329,10 +329,6 @@ fn colour_from_string(colour: String) -> Colour { Colour { red, green, blue } } -fn colour_to_string(colour: Colour) -> String { - format!("{},{},{}", colour.red, colour.green, colour.blue) -} - #[test] fn test_colour_from_string() { assert_eq!( @@ -341,6 +337,10 @@ fn test_colour_from_string() { ); } +fn colour_to_string(colour: Colour) -> String { + format!("{},{},{}", colour.red, colour.green, colour.blue) +} + #[test] fn test_colour_to_string() { assert_eq!(