Use the now available implementation of IntoIterator
for arrays
This commit is contained in:
parent
a216131c35
commit
e3ca81fd5a
17 changed files with 34 additions and 34 deletions
|
@ -437,7 +437,7 @@ fn test_decode_str() {
|
|||
("\"\\uAB12\"", "\u{AB12}"),
|
||||
];
|
||||
|
||||
for &(i, o) in &s {
|
||||
for (i, o) in s {
|
||||
let v: string::String = json::decode(i).unwrap();
|
||||
assert_eq!(v, o);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue