one liner

This commit is contained in:
Max Bradbury 2020-04-12 10:21:38 +01:00
parent d3701348ec
commit 57c9199bca
1 changed files with 1 additions and 4 deletions

View File

@ -726,10 +726,7 @@ impl ToString for Position {
#[test] #[test]
fn test_position_to_string() { fn test_position_to_string() {
assert_eq!( assert_eq!(Position { x: 4, y: 12 }.to_string(), "4,12".to_string())
Position { x: 4, y: 12 }.to_string(),
"4,12".to_string()
)
} }
fn avatar_from_string(string: String) -> Avatar { fn avatar_from_string(string: String) -> Avatar {