mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
Chore: Apply cargo fmt
to ensure code formatting compliance
Reformatted the code to pass `cargo fmt --check`
This commit is contained in:
parent
0021e4aed5
commit
9f8adfc1f1
2 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,6 @@ pub enum PreferredContrast {
|
||||||
Custom,
|
Custom,
|
||||||
#[default]
|
#[default]
|
||||||
NoPreference,
|
NoPreference,
|
||||||
|
|
||||||
}
|
}
|
||||||
impl Display for PreferredContrast {
|
impl Display for PreferredContrast {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
|
|
@ -61,7 +61,9 @@ pub fn use_prefers_reduced_motion() -> Signal<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Version of [`fn@crate::use_prefers_reduced_motion`] that takes a `UsePrefersReducedMotionOptions`. See [`fn@crate::use_prefers_reduced_motion`] for how to use.
|
/// Version of [`fn@crate::use_prefers_reduced_motion`] that takes a `UsePrefersReducedMotionOptions`. See [`fn@crate::use_prefers_reduced_motion`] for how to use.
|
||||||
pub fn use_prefers_reduced_motion_with_options(options: UsePrefersReducedMotionOptions) -> Signal<bool> {
|
pub fn use_prefers_reduced_motion_with_options(
|
||||||
|
options: UsePrefersReducedMotionOptions,
|
||||||
|
) -> Signal<bool> {
|
||||||
#[cfg(not(feature = "ssr"))]
|
#[cfg(not(feature = "ssr"))]
|
||||||
{
|
{
|
||||||
let _ = options;
|
let _ = options;
|
||||||
|
|
Loading…
Add table
Reference in a new issue