From 9f75869c1d714cd86e934fb8dfe6b0f969ab0d88 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 24 Oct 2023 14:34:58 -0400 Subject: [PATCH 1/2] chore: remove `wee_alloc` to make Dependabot happy --- examples/hackernews_islands_axum/Cargo.toml | 1 - examples/hackernews_islands_axum/src/lib.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/examples/hackernews_islands_axum/Cargo.toml b/examples/hackernews_islands_axum/Cargo.toml index fcbee56b75..b183bc7ad2 100644 --- a/examples/hackernews_islands_axum/Cargo.toml +++ b/examples/hackernews_islands_axum/Cargo.toml @@ -39,7 +39,6 @@ tokio = { version = "1.22.0", features = ["full"], optional = true } http = { version = "0.2.8", optional = true } web-sys = { version = "0.3", features = ["AbortController", "AbortSignal"] } wasm-bindgen = "0.2" -wee_alloc = "0.4.5" lazy_static = "1.4.0" [features] diff --git a/examples/hackernews_islands_axum/src/lib.rs b/examples/hackernews_islands_axum/src/lib.rs index 216b9f6954..8024b736f6 100644 --- a/examples/hackernews_islands_axum/src/lib.rs +++ b/examples/hackernews_islands_axum/src/lib.rs @@ -36,12 +36,6 @@ cfg_if! { if #[cfg(feature = "hydrate")] { use wasm_bindgen::prelude::wasm_bindgen; - extern crate wee_alloc; - - // Use `wee_alloc` as the global allocator. - #[global_allocator] - static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; - #[wasm_bindgen] pub fn hydrate() { #[cfg(debug_assertions)] From 1b6d6fb5b8c2522d925bde4bb928a01d06719ab5 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 24 Oct 2023 15:07:08 -0400 Subject: [PATCH 2/2] clippy --- examples/hackernews_islands_axum/src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/hackernews_islands_axum/src/main.rs b/examples/hackernews_islands_axum/src/main.rs index 34696c2c8b..64f75ed898 100644 --- a/examples/hackernews_islands_axum/src/main.rs +++ b/examples/hackernews_islands_axum/src/main.rs @@ -4,7 +4,6 @@ mod ssr_imports { pub use hackernews_islands::fallback::file_and_error_handler; pub use leptos::*; pub use leptos_axum::{generate_route_list, LeptosRoutes}; - pub use tower_http::{compression::CompressionLayer, services::ServeFile}; } #[cfg(feature = "ssr")]