diff --git a/README.md b/README.md index af45f4b..8470b62 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/use_color_mode.rs b/src/use_color_mode.rs index 8259b78..6af1c06 100644 --- a/src/use_color_mode.rs +++ b/src/use_color_mode.rs @@ -130,7 +130,10 @@ where let modes: Vec = 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); diff --git a/src/use_css_var.rs b/src/use_css_var.rs index e1dd70f..d60ca8f 100644 --- a/src/use_css_var.rs +++ b/src/use_css_var.rs @@ -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::, T, _>( cx,