Chore: Apply cargo fmt to ensure code formatting compliance

Reformatted the code to pass `cargo fmt --check`
This commit is contained in:
Hector Candelaria 2024-08-18 18:57:04 -04:00
parent 0021e4aed5
commit 9f8adfc1f1
2 changed files with 3 additions and 2 deletions

View file

@ -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 {

View file

@ -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;