diff --git a/examples/website/state_generation/src/main.rs b/examples/website/state_generation/src/main.rs index 4410a74288..fe41599a7b 100644 --- a/examples/website/state_generation/src/main.rs +++ b/examples/website/state_generation/src/main.rs @@ -55,7 +55,7 @@ async fn get_build_state( Err(err) => { return Err(BlamedError { blame: ErrorBlame::Client(Some(404)), - error: MyError, + error: MyError(err), }) } }; @@ -84,8 +84,8 @@ async fn get_build_paths() -> BuildPaths { // SNIP #[derive(thiserror::Error, Debug)] -#[error("an error!")] -struct MyError; +#[error(transparent)] +struct MyError(io::Error); fn get_post_for_path(_path: String) -> Result { unimplemented!() } diff --git a/packages/perseus-actix-web/src/lib.rs b/packages/perseus-actix-web/src/lib.rs index d1a148371e..fd0b8ffacf 100644 --- a/packages/perseus-actix-web/src/lib.rs +++ b/packages/perseus-actix-web/src/lib.rs @@ -10,8 +10,6 @@ documentation, and this should mostly be used as a secondary reference source. Y #![deny(missing_docs)] #![deny(missing_debug_implementations)] -use std::sync::Arc; - use actix_files::{Files, NamedFile}; use actix_web::{web, HttpRequest, HttpResponse, Responder}; use perseus::turbine::ApiResponse as PerseusApiResponse; diff --git a/packages/perseus/src/reactor/start.rs b/packages/perseus/src/reactor/start.rs index 1a28d194fe..107a65be22 100644 --- a/packages/perseus/src/reactor/start.rs +++ b/packages/perseus/src/reactor/start.rs @@ -11,7 +11,7 @@ use crate::{ use sycamore::prelude::{create_effect, create_signal, on_mount, view, ReadSignal, Scope, View}; use sycamore_futures::spawn_local_scoped; use sycamore_router::{navigate_replace, HistoryIntegration, RouterBase}; -use web_sys::{CustomEvent, CustomEventInit, Element}; +use web_sys::Element; // We don't want to bring in a styling library, so we do this the old-fashioned // way! We're particularly comprehensive with these because the user could diff --git a/packages/perseus/src/state/rx_collections/rx_hash_map.rs b/packages/perseus/src/state/rx_collections/rx_hash_map.rs index 40a6ad3d1a..8b71083b00 100644 --- a/packages/perseus/src/state/rx_collections/rx_hash_map.rs +++ b/packages/perseus/src/state/rx_collections/rx_hash_map.rs @@ -60,7 +60,7 @@ where } #[cfg(client)] - fn compute_suspense(&self, cx: Scope) {} + fn compute_suspense(&self, _cx: Scope) {} } // --- Dereferencing --- impl Deref for RxHashMap diff --git a/packages/perseus/src/state/rx_collections/rx_vec.rs b/packages/perseus/src/state/rx_collections/rx_vec.rs index f30fddc3de..d25ebd7d28 100644 --- a/packages/perseus/src/state/rx_collections/rx_vec.rs +++ b/packages/perseus/src/state/rx_collections/rx_vec.rs @@ -49,7 +49,7 @@ where } #[cfg(client)] - fn compute_suspense(&self, cx: Scope) {} + fn compute_suspense(&self, _cx: Scope) {} } // --- Dereferencing --- impl Deref for RxVec diff --git a/packages/perseus/src/state/rx_state.rs b/packages/perseus/src/state/rx_state.rs index d81ec9ded7..8c73cf48c5 100644 --- a/packages/perseus/src/state/rx_state.rs +++ b/packages/perseus/src/state/rx_state.rs @@ -41,7 +41,7 @@ pub trait MakeUnrx { /// user's handlers. Each handler must have the following function /// signature: /// - /// ``` + /// ```text /// Fn(Scope<'a>, RxRef<'a>); /// ``` /// diff --git a/packages/perseus/src/translator/fluent.rs b/packages/perseus/src/translator/fluent.rs index d053a50021..0cdac0b5d4 100644 --- a/packages/perseus/src/translator/fluent.rs +++ b/packages/perseus/src/translator/fluent.rs @@ -2,7 +2,7 @@ use crate::{reactor::Reactor, translator::errors::*, PerseusNodeType}; use fluent_bundle::{bundle::FluentBundle, FluentArgs, FluentResource}; use intl_memoizer::concurrent::IntlLangMemoizer; use std::sync::Arc; -use sycamore::prelude::{use_context, Scope, Signal}; +use sycamore::prelude::{use_context, Scope}; use unic_langid::{LanguageIdentifier, LanguageIdentifierError}; /// The file extension used by the Fluent translator, which expects FTL files.