Clone in a terminal:
Commit 8a643c4
Johan Mattsson - 2026-10-30T18:32:18+00:00
8a643c4e2efd221a49c44e2c71f49c9e42e9087fjohan.mattsson.m@gmail.com

More cleanup

Changed files (4)

Diff

diff --git a/Cargo.lock b/Cargo.lockindex dbc7d75..a60e0ad 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -442,7 +442,7 @@ dependencies = [  [[package]] name = "kaja-web"-version = "1.0.4"+version = "1.0.5" dependencies = [  "gloo",  "gloo-console",diff --git a/Cargo.toml b/Cargo.tomlindex a4e454c..0217a6a 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@ [package] name = "kaja-web"-version = "1.0.4"+version = "1.0.5" edition = "2024" description = "Web framework for Rust targeting the WebAssembly" license = "MIT"diff --git a/src/lib.rs b/src/lib.rsindex 3d66534..8b2b1ad 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -47,23 +47,6 @@ pub struct CallbackRegistration {  inventory::collect!(CallbackRegistration); -pub trait ComponentStorage: Default + Sized {-    fn storage() -> &'static std::thread::LocalKey<-        std::cell::RefCell<std::collections::HashMap<String, SharedComponent<Self>>>,-    >;-}--pub fn dispatch_component_update(component: &str, id: &str) -> bool {-    for update in inventory::iter::<UpdateComponentFn> {-        if update.component == component {-            (update.dispatch)(id);-            return true;-        }-    }--    false-}- /// Register callbacks that can be used in JS to run Rust functions in the WASM /// module. This needs to run when the WASM bundle is loaded. ///diff --git a/src/prelude.rs b/src/prelude.rsindex 6a0e8d9..f523dd1 100644--- a/src/prelude.rs+++ b/src/prelude.rs@@ -1,8 +1,8 @@ pub use crate::{     CallbackRegistration, Error, InitComponentFn, InitFn, Result, SharedComponent,-    UpdateComponentFn, add_css_class, dispatch_component_update, get_callback, get_cookie_value,-    get_element, get_element_by_id, get_elements, get_value, init_callbacks, inner_html,-    inner_text, remove_css_class, try_get_value, try_inner_html, try_inner_text,+    UpdateComponentFn, add_css_class, get_callback, get_cookie_value, get_element,+    get_element_by_id, get_elements, get_value, init_callbacks, inner_html, inner_text,+    remove_css_class, try_get_value, try_inner_html, try_inner_text, };  pub use gloo::console::error;

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112