consistent function ordering
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user