one liner
This commit is contained in:
parent
d3701348ec
commit
57c9199bca
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue