Skip to content

Commit 09e89bb

Browse files
Update Message::Move in the enums3 test to take a Point.
1 parent 7c4b1f9 commit 09e89bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/enums/enums3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mod tests {
5353
};
5454
state.process(Message::ChangeColor(255, 0, 255));
5555
state.process(Message::Echo(String::from("hello world")));
56-
state.process(Message::Move{ x: 10, y: 15 });
56+
state.process(Message::Move(Point{ x: 10, y: 15 }));
5757
state.process(Message::Quit);
5858

5959
assert_eq!(state.color, (255, 0, 255));

0 commit comments

Comments
 (0)