chore: clippy

This commit is contained in:
Greg Johnston 2024-06-09 14:41:04 -04:00
parent 6b60d48203
commit 7def5f65ed
3 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ pub fn HydrationScripts(
#[cfg(feature = "nonce")]
let nonce = crate::nonce::use_nonce();
#[cfg(not(feature = "nonce"))]
let nonce = None::<()>;
let nonce = None::<String>;
let script = if islands {
include_str!("./island_script.js")
} else {

View File

@ -172,7 +172,10 @@ pub mod prelude {
computed::*, effect::*, owner::*, signal::*, wrappers::read::*, *,
};
pub use server_fn::{self, ServerFnError};
pub use tachys::{self, reactive_graph::node_ref::*};
pub use tachys::{
self,
reactive_graph::{node_ref::*, Suspend},
};
}
pub use export_types::*;
}

View File

@ -2,7 +2,6 @@ use crate::{
children::{TypedChildren, ViewFnOnce},
IntoView,
};
use any_spawner::Executor;
use futures::FutureExt;
use leptos_macro::component;
use reactive_graph::{
@ -12,7 +11,6 @@ use reactive_graph::{
traits::{Get, Read, Track, With},
};
use slotmap::{DefaultKey, SlotMap};
use std::{cell::RefCell, fmt::Debug, future::Future, pin::Pin, rc::Rc};
use tachys::{
either::Either,
html::attribute::Attribute,
@ -23,8 +21,7 @@ use tachys::{
view::{
add_attr::AddAnyAttr,
either::{EitherKeepAlive, EitherKeepAliveState},
iterators::OptionState,
Mountable, Position, PositionState, Render, RenderHtml,
Position, PositionState, Render, RenderHtml,
},
};
use throw_error::ErrorHookFuture;