diff options
author | Sam Scott <sam.scott89@gmail.com> | 2017-03-12 14:44:44 -0400 |
---|---|---|
committer | Sam Scott <sam.scott89@gmail.com> | 2017-03-12 14:44:44 -0400 |
commit | bccdce1a3ac0dc0646f4ffa9bc0a09ea19ae58a5 (patch) | |
tree | 365d4561f44407720f24ec84690611096807c040 /tests/test_serialize.rs | |
parent | 317b8b17f3e3656cdc64fc6435889d005aa9a8af (diff) |
Run rustfmt on code.
Diffstat (limited to 'tests/test_serialize.rs')
-rw-r--r-- | tests/test_serialize.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_serialize.rs b/tests/test_serialize.rs index af66903..4a9964a 100644 --- a/tests/test_serialize.rs +++ b/tests/test_serialize.rs @@ -28,10 +28,14 @@ fn serialize_struct() { city: "Carrot City".to_string(), postcode: "12345".to_string(), }, - user_ids: vec!(1,2,3,4), + user_ids: vec![1, 2, 3, 4], }; - assert_eq!(qs::to_string(¶ms).unwrap(), urlencode("id=42&name=Acme&phone=12345&address[city]=Carrot+City&address[postcode]=12345&user_ids[0]=1&user_ids[1]=2&user_ids[2]=3&user_ids[3]=4")); + assert_eq!(qs::to_string(¶ms).unwrap(), + urlencode("\ + id=42&name=Acme&phone=12345&address[city]=Carrot+City&\ + address[postcode]=12345&user_ids[0]=1&user_ids[1]=2&\ + user_ids[2]=3&user_ids[3]=4")); } fn urlencode(input: &str) -> String { |