chore: clippy

This commit is contained in:
Maccesch 2023-07-15 01:14:13 +01:00
parent ea8d6ca71d
commit 6b9a272b12
3 changed files with 6 additions and 3 deletions

View file

@ -78,7 +78,7 @@ python3 post_build.py
If you only want to add the example for one function you can run for example
```shell
python3 post_build.py use_mequery
python3 post_build.py use_storage
```
### New Function Template

View file

@ -130,7 +130,10 @@ where
let modes: Vec<String> = custom_modes
.into_iter()
.chain(vec![ColorMode::Dark.to_string(), ColorMode::Light.to_string()].into_iter())
.chain(vec![
ColorMode::Dark.to_string(),
ColorMode::Light.to_string(),
])
.collect();
let preferred_dark = use_preferred_dark(cx);

View file

@ -135,7 +135,7 @@ where
let el_signal = el_signal.clone();
init.attribute_filter(&js_sys::Array::from_iter(
vec![JsValue::from_str("style")].into_iter(),
vec![JsValue::from_str("style")],
));
use_mutation_observer_with_options::<ElementMaybeSignal<T, web_sys::Element>, T, _>(
cx,