From 09e89bbcd3079ef440e24837f42b8a0b080eb20e Mon Sep 17 00:00:00 2001 From: Siobhan Jacobson Date: Mon, 4 May 2020 18:59:23 -0400 Subject: [PATCH] Update Message::Move in the enums3 test to take a Point. --- exercises/enums/enums3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/enums/enums3.rs b/exercises/enums/enums3.rs index bb7dfb4..4b0be97 100644 --- a/exercises/enums/enums3.rs +++ b/exercises/enums/enums3.rs @@ -53,7 +53,7 @@ mod tests { }; state.process(Message::ChangeColor(255, 0, 255)); state.process(Message::Echo(String::from("hello world"))); - state.process(Message::Move{ x: 10, y: 15 }); + state.process(Message::Move(Point{ x: 10, y: 15 })); state.process(Message::Quit); assert_eq!(state.color, (255, 0, 255));