mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Merge pull request #29 from durin42/push-kmpkplpoxlys
cleanup: remove redundant clone
This commit is contained in:
commit
45b5c84d7c
@ -28,7 +28,8 @@ use wasm_bindgen::throw_str;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
api::{HttpStore, LocalStore},
|
api::{HttpStore, LocalStore},
|
||||||
components, linear::LinearSignal,
|
components,
|
||||||
|
linear::LinearSignal,
|
||||||
};
|
};
|
||||||
|
|
||||||
fn bool_true() -> bool {
|
fn bool_true() -> bool {
|
||||||
@ -438,8 +439,7 @@ impl MessageMapper<Message, AppState> for StateMachine {
|
|||||||
let local_store = self.local_store.clone();
|
let local_store = self.local_store.clone();
|
||||||
debug!("Loading user state.");
|
debug!("Loading user state.");
|
||||||
spawn_local_scoped(cx, async move {
|
spawn_local_scoped(cx, async move {
|
||||||
if let Err(err) = Self::load_state(&store, &local_store, original.clone()).await
|
if let Err(err) = Self::load_state(&store, &local_store, original).await {
|
||||||
{
|
|
||||||
error!(?err, "Failed to load user state");
|
error!(?err, "Failed to load user state");
|
||||||
components::toast::error_message(cx, "Failed to load_state.", None);
|
components::toast::error_message(cx, "Failed to load_state.", None);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user