We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640c807 commit af922fbCopy full SHA for af922fb
examples/todomvc/src/store.rs
@@ -67,9 +67,9 @@ impl Store {
67
array.push(&JsValue::from(child));
68
}
69
if let Ok(storage_string) = JSON::stringify(&JsValue::from(array)) {
70
- let storage_string: String = storage_string.to_string().into();
+ let storage_string: String = storage_string.into();
71
self.local_storage
72
- .set_item(&self.name, storage_string.as_str())
+ .set_item(&self.name, &storage_string)
73
.unwrap();
74
75
0 commit comments