@@ -910,13 +910,19 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphMessageContext<'a>> for NodeG
910910
911911 // Toggle visibility of clicked node and return
912912 if let Some ( clicked_visibility) = network_interface. layer_click_target_from_click ( click, network_interface:: LayerClickTargetTypes :: Visibility , selection_network_path) {
913- responses. add ( NodeGraphMessage :: ToggleVisibility { node_id : clicked_visibility, network_path : selection_network_path. to_vec ( ) } ) ;
913+ responses. add ( NodeGraphMessage :: ToggleVisibility {
914+ node_id : clicked_visibility,
915+ network_path : selection_network_path. to_vec ( ) ,
916+ } ) ;
914917 return ;
915918 }
916919
917920 // Toggle lock of clicked node and return
918921 if let Some ( clicked_lock) = network_interface. layer_click_target_from_click ( click, network_interface:: LayerClickTargetTypes :: Lock , selection_network_path) {
919- responses. add ( NodeGraphMessage :: ToggleLocked { node_id : clicked_lock, network_path : selection_network_path. to_vec ( ) } ) ;
922+ responses. add ( NodeGraphMessage :: ToggleLocked {
923+ node_id : clicked_lock,
924+ network_path : selection_network_path. to_vec ( ) ,
925+ } ) ;
920926 return ;
921927 }
922928
@@ -1875,7 +1881,11 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphMessageContext<'a>> for NodeG
18751881 responses. add ( DocumentMessage :: AddTransaction ) ;
18761882
18771883 for node_id in & node_ids {
1878- responses. add ( NodeGraphMessage :: SetLocked { node_id : * node_id, network_path : selection_network_path. to_vec ( ) , locked } ) ;
1884+ responses. add ( NodeGraphMessage :: SetLocked {
1885+ node_id : * node_id,
1886+ network_path : selection_network_path. to_vec ( ) ,
1887+ locked,
1888+ } ) ;
18791889 }
18801890
18811891 responses. add ( NodeGraphMessage :: SetLockedOrVisibilitySideEffects { node_ids } )
@@ -1918,7 +1928,11 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphMessageContext<'a>> for NodeG
19181928
19191929 responses. add ( DocumentMessage :: AddTransaction ) ;
19201930 for node_id in & node_ids {
1921- responses. add ( NodeGraphMessage :: SetVisibility { node_id : * node_id, network_path : selection_network_path. to_vec ( ) , visible } ) ;
1931+ responses. add ( NodeGraphMessage :: SetVisibility {
1932+ node_id : * node_id,
1933+ network_path : selection_network_path. to_vec ( ) ,
1934+ visible,
1935+ } ) ;
19221936 }
19231937 responses. add ( NodeGraphMessage :: SetLockedOrVisibilitySideEffects { node_ids } ) ;
19241938 }
0 commit comments