chore: clippy

This commit is contained in:
Greg Johnston 2024-06-10 21:23:42 -04:00
parent 095faf15b1
commit a47759007f
2 changed files with 3 additions and 2 deletions

View file

@ -452,7 +452,7 @@ where
}
#[cfg(feature = "nightly")]
impl<'a, const V: &'static str, R> IntoStyle<R> for (Arc<str>, Static<V>)
impl<const V: &'static str, R> IntoStyle<R> for (Arc<str>, Static<V>)
where
R: DomRenderer,
{
@ -474,7 +474,7 @@ where
fn build(self, el: &R::Element) -> Self::State {
let (name, _) = &self;
let style = R::style(el);
R::set_css_property(&style, &name, V);
R::set_css_property(&style, name, V);
}
fn rebuild(self, _state: &mut Self::State) {}

View file

@ -36,6 +36,7 @@ where
build: fn(Box<dyn Any>) -> AnyViewState<R>,
rebuild: fn(TypeId, Box<dyn Any>, &mut AnyViewState<R>),
#[cfg(feature = "ssr")]
#[allow(clippy::type_complexity)]
resolve:
fn(Box<dyn Any>) -> Pin<Box<dyn Future<Output = AnyView<R>> + Send>>,
#[cfg(feature = "ssr")]