From 873f6b4ea7d3844352878f0c5b2af0c8ef37edbf Mon Sep 17 00:00:00 2001 From: Leon Liu Date: Mon, 30 Dec 2024 18:24:55 +0900 Subject: [PATCH] update --- src/app.rs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/app.rs b/src/app.rs index ad04060..bd4f5c0 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,9 +1,4 @@ -use std::{fs::File, io::Read, sync::Arc}; - -use leptos::{ - logging::log, - prelude::{Read as Reads, *}, -}; +use leptos::prelude::{Read as Reads, *}; use reactive_stores::Store; use serde::{Deserialize, Serialize}; use serde_wasm_bindgen::from_value; @@ -11,19 +6,6 @@ use strum_macros::EnumIter; use wasm_bindgen::prelude::*; use wasm_bindgen_futures::spawn_local; -#[derive(Deserialize, Serialize)] -struct Test { - a: Arc, -} - -impl Test { - fn new() -> Self { - let mut buf = String::new(); - let _ = File::open("").unwrap().read_to_string(&mut buf); - serde_json::from_str(&buf).unwrap() - } -} - #[wasm_bindgen] extern "C" { // invoke without arguments