@@ -28,7 +28,6 @@ const SCALE_THRESHOLD: f32 = 0.05;
2828const CENTER_THRESHOLD : f32 = 50.0 ;
2929pub ( super ) const EDGE_TOLERANCE : f32 = 1.0 ;
3030
31-
3231#[ derive( Debug , Clone ) ]
3332pub struct Camera2D {
3433 pub position : Point ,
@@ -192,10 +191,7 @@ impl ArrangementState {
192191 list. outputs
193192 . get ( disp. output_key )
194193 . map ( |output| {
195- let randr_pos = Point :: new (
196- output. position . 0 as f32 ,
197- output. position . 1 as f32 ,
198- ) ;
194+ let randr_pos = Point :: new ( output. position . 0 as f32 , output. position . 1 as f32 ) ;
199195 randr_pos != disp. position
200196 } )
201197 . unwrap_or ( false )
@@ -287,7 +283,8 @@ impl ArrangementState {
287283
288284 fn would_overlap_any ( & self , dragged_key : OutputKey , position : Point , size : Size ) -> bool {
289285 self . displays . borrow ( ) . iter ( ) . any ( |other| {
290- other. output_key != dragged_key && Self :: rectangles_overlap ( position, size, other. bounds ( ) )
286+ other. output_key != dragged_key
287+ && Self :: rectangles_overlap ( position, size, other. bounds ( ) )
291288 } )
292289 }
293290
@@ -747,10 +744,7 @@ impl<'a, Message: Clone> Program<Message, Theme, Renderer> for ArrangementCanvas
747744 let displays = state. displays . borrow ( ) ;
748745 if let Some ( display) = displays. iter ( ) . find ( |d| d. output_key == output_key)
749746 {
750- let new_pos = (
751- display. position . x as i32 ,
752- display. position . y as i32 ,
753- ) ;
747+ let new_pos = ( display. position . x as i32 , display. position . y as i32 ) ;
754748
755749 let old_pos = self
756750 . list
0 commit comments