gardesk/tarmac / 102c4cf

Browse files

Apply rustfmt to focus-memory helper and tests

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
102c4cf73ac758e7b19ff67d2976e598d2d14931
Parents
20a6e0a
Tree
fc1b3ba

1 changed file

StatusFile+-
M tarmac/src/core/state.rs 9 5
tarmac/src/core/state.rsmodified
@@ -958,9 +958,7 @@ impl WmState {
958958
             Direction::Left | Direction::Right => {
959959
                 a.y.max(b.y) < (a.y + a.height).min(b.y + b.height)
960960
             }
961
-            Direction::Up | Direction::Down => {
962
-                a.x.max(b.x) < (a.x + a.width).min(b.x + b.width)
963
-            }
961
+            Direction::Up | Direction::Down => a.x.max(b.x) < (a.x + a.width).min(b.x + b.width),
964962
         }
965963
     }
966964
 
@@ -3644,11 +3642,17 @@ mod tests {
36443642
         state.remember_focus_transition(2, Direction::Left, 1, &geoms);
36453643
 
36463644
         assert_eq!(
3647
-            state.focus_return_memory.get(&(2, Direction::Left)).copied(),
3645
+            state
3646
+                .focus_return_memory
3647
+                .get(&(2, Direction::Left))
3648
+                .copied(),
36483649
             Some(1)
36493650
         );
36503651
         assert_eq!(
3651
-            state.focus_return_memory.get(&(1, Direction::Right)).copied(),
3652
+            state
3653
+                .focus_return_memory
3654
+                .get(&(1, Direction::Right))
3655
+                .copied(),
36523656
             Some(2)
36533657
         );
36543658
     }