Merge pull request #29 from durin42/push-kmpkplpoxlys

cleanup: remove redundant clone
This commit is contained in:
Jeremy Wall 2023-11-25 22:19:52 -05:00 committed by GitHub
commit 45b5c84d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,8 @@ use wasm_bindgen::throw_str;
use crate::{
api::{HttpStore, LocalStore},
components, linear::LinearSignal,
components,
linear::LinearSignal,
};
fn bool_true() -> bool {
@ -438,8 +439,7 @@ impl MessageMapper<Message, AppState> for StateMachine {
let local_store = self.local_store.clone();
debug!("Loading user state.");
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");
components::toast::error_message(cx, "Failed to load_state.", None);
} else {