mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
chore: clippy
This commit is contained in:
parent
ea8d6ca71d
commit
6b9a272b12
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue