cleanup: remove redundant clone

```
warning: call to `.clone()` on a reference in this situation does nothing
   --> web/src/app_state.rs:441:86
    |
441 | ..., &local_store, original.clone()).await
    |                            ^^^^^^^^ help: remove this redundant call
    |
    = note: the type `sycamore::reactive::Signal<AppState>` does not implement `Clone`, so calling `clone` on `&sycamore::reactive::Signal<AppState>` copies the reference, which does not do anything and can be removed
```
This commit is contained in:
Augie Fackler 2023-11-25 10:58:17 -05:00
parent 0b7f513f27
commit e30555aabe

View File

@ -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 {