From 6ec00c1e334eab6b62560cdcfe5ad8260e37385c Mon Sep 17 00:00:00 2001 From: Noa <33094578+coolreader18@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:57:59 -0600 Subject: [PATCH] Normalize some whitespace --- src/attribute_set.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/attribute_set.rs b/src/attribute_set.rs index fac438e..ac47a12 100644 --- a/src/attribute_set.rs +++ b/src/attribute_set.rs @@ -145,7 +145,7 @@ macro_rules! evdev_enum { ($t:ty, Array, $($(#[$attr:meta])* $c:ident = $val:expr,)*) => { evdev_enum!( $t, - Array:bitvec::BitArr!(for <$t>::COUNT, in u8), + Array: bitvec::BitArr!(for <$t>::COUNT, in u8), bitvec::array::BitArray::as_mut_raw_slice, bitvec::array::BitArray::zeroed(), $($(#[$attr])* $c = $val,)* @@ -154,7 +154,7 @@ macro_rules! evdev_enum { ($t:ty, box Array, $($(#[$attr:meta])* $c:ident = $val:expr,)*) => { evdev_enum!( $t, - Array:Box::COUNT, in u8)>, + Array: Box::COUNT, in u8)>, bitvec::array::BitArray::as_mut_raw_slice, Box::new(bitvec::array::BitArray::zeroed()), $($(#[$attr])* $c = $val,)* @@ -189,7 +189,7 @@ macro_rules! evdev_enum { impl std::str::FromStr for $t { type Err = crate::EnumParseError; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> Result { let map: &[(&'static str, $t)] = &[ $((stringify!($c), Self::$c),)* ];