consistent function ordering

This commit is contained in:
Max Bradbury 2020-04-05 22:28:35 +01:00
parent f27f31fac8
commit 645d89d05d
1 changed files with 4 additions and 4 deletions

View File

@ -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!(