From 9f8adfc1f10d545a526bfc97177ad4940e9c154f Mon Sep 17 00:00:00 2001 From: Hector Candelaria Date: Sun, 18 Aug 2024 18:57:04 -0400 Subject: [PATCH] Chore: Apply cargo `fmt` to ensure code formatting compliance Reformatted the code to pass `cargo fmt --check` --- src/use_preferred_contrast.rs | 1 - src/use_prefers_reduced_motion.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/use_preferred_contrast.rs b/src/use_preferred_contrast.rs index d90998f..9e3eb0a 100644 --- a/src/use_preferred_contrast.rs +++ b/src/use_preferred_contrast.rs @@ -54,7 +54,6 @@ pub enum PreferredContrast { Custom, #[default] NoPreference, - } impl Display for PreferredContrast { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/src/use_prefers_reduced_motion.rs b/src/use_prefers_reduced_motion.rs index 68a0563..b1afd55 100644 --- a/src/use_prefers_reduced_motion.rs +++ b/src/use_prefers_reduced_motion.rs @@ -61,7 +61,9 @@ pub fn use_prefers_reduced_motion() -> Signal { } /// 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 { +pub fn use_prefers_reduced_motion_with_options( + options: UsePrefersReducedMotionOptions, +) -> Signal { #[cfg(not(feature = "ssr"))] { let _ = options;