Makes code clearing by providing code symmetry.

```            
child.push(&JsValue::from(&item.title));
child.push(&JsValue::from(item.completed));
child.push(&JsValue::from(&item.id));
```
Parallel syntax makes it easier to see that each iteration intends to push each of `item`'s fields to `child`.
This commit is contained in:
Benjamin Lee 2019-08-05 23:16:53 -07:00 committed by GitHub
parent 09b37b4a43
commit fffcc5ef35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ impl Store {
let child = js_sys::Array::new();
child.push(&JsValue::from(&item.title));
child.push(&JsValue::from(item.completed));
child.push(&JsValue::from(item.id.to_string()));
child.push(&JsValue::from(&item.id));
array.push(&JsValue::from(child));
}