From 645d89d05d9468fc4752ac6b6ce21bd82e0f943b Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 5 Apr 2020 22:28:35 +0100 Subject: [PATCH] consistent function ordering --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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!(