mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 18:21:33 +00:00
Removed unnecessary and confusing clone of String
This commit is contained in:
@ -60,8 +60,7 @@ impl Store {
|
||||
let array = js_sys::Array::new();
|
||||
for item in self.data.iter() {
|
||||
let child = js_sys::Array::new();
|
||||
let s = item.title.clone();
|
||||
child.push(&JsValue::from(&s));
|
||||
child.push(&JsValue::from(&item.title));
|
||||
child.push(&JsValue::from(item.completed));
|
||||
child.push(&JsValue::from(item.id.to_string()));
|
||||
|
||||
|
Reference in New Issue
Block a user