@@ -11,19 +11,27 @@ macro_rules! i {
1111 ( $array: expr, $index: expr) => {
1212 unsafe { * $array. get_unchecked( $index) }
1313 } ;
14- ( $array: expr, $index: expr, =, $rhs: expr) => {
15- unsafe { * $array. get_unchecked_mut( $index) = $rhs; }
14+ ( $array: expr, $index: expr, = , $rhs: expr) => {
15+ unsafe {
16+ * $array. get_unchecked_mut( $index) = $rhs;
17+ }
1618 } ;
17- ( $array: expr, $index: expr, +=, $rhs: expr) => {
18- unsafe { * $array. get_unchecked_mut( $index) += $rhs; }
19+ ( $array: expr, $index: expr, += , $rhs: expr) => {
20+ unsafe {
21+ * $array. get_unchecked_mut( $index) += $rhs;
22+ }
1923 } ;
20- ( $array: expr, $index: expr, -=, $rhs: expr) => {
21- unsafe { * $array. get_unchecked_mut( $index) -= $rhs; }
24+ ( $array: expr, $index: expr, -= , $rhs: expr) => {
25+ unsafe {
26+ * $array. get_unchecked_mut( $index) -= $rhs;
27+ }
2228 } ;
23- ( $array: expr, $index: expr, &=, $rhs: expr) => {
24- unsafe { * $array. get_unchecked_mut( $index) &= $rhs; }
29+ ( $array: expr, $index: expr, &= , $rhs: expr) => {
30+ unsafe {
31+ * $array. get_unchecked_mut( $index) &= $rhs;
32+ }
2533 } ;
26- ( $array: expr, $index: expr, ==, $rhs: expr) => {
34+ ( $array: expr, $index: expr, == , $rhs: expr) => {
2735 unsafe { * $array. get_unchecked_mut( $index) == $rhs }
2836 } ;
2937}
@@ -33,19 +41,19 @@ macro_rules! i {
3341 ( $array: expr, $index: expr) => {
3442 * $array. get( $index) . unwrap( )
3543 } ;
36- ( $array: expr, $index: expr, =, $rhs: expr) => {
44+ ( $array: expr, $index: expr, = , $rhs: expr) => {
3745 * $array. get_mut( $index) . unwrap( ) = $rhs;
3846 } ;
39- ( $array: expr, $index: expr, -=, $rhs: expr) => {
47+ ( $array: expr, $index: expr, -= , $rhs: expr) => {
4048 * $array. get_mut( $index) . unwrap( ) -= $rhs;
4149 } ;
42- ( $array: expr, $index: expr, +=, $rhs: expr) => {
50+ ( $array: expr, $index: expr, += , $rhs: expr) => {
4351 * $array. get_mut( $index) . unwrap( ) += $rhs;
4452 } ;
45- ( $array: expr, $index: expr, &=, $rhs: expr) => {
53+ ( $array: expr, $index: expr, &= , $rhs: expr) => {
4654 * $array. get_mut( $index) . unwrap( ) &= $rhs;
4755 } ;
48- ( $array: expr, $index: expr, ==, $rhs: expr) => {
56+ ( $array: expr, $index: expr, == , $rhs: expr) => {
4957 * $array. get_mut( $index) . unwrap( ) == $rhs
5058 } ;
5159}
0 commit comments