@@ -73,10 +73,8 @@ impl NodeNetworkInterface {
7373 fix_network ( network) ;
7474 }
7575 if let DocumentNodeImplementation :: ProtoNode ( protonode) = & node. implementation {
76- if protonode. name . contains ( "PathModifyNode" ) {
77- if node. inputs . len ( ) < 3 {
78- node. inputs . push ( NodeInput :: Reflection ( graph_craft:: document:: DocumentNodeMetadata :: DocumentNodePath ) ) ;
79- }
76+ if protonode. name . contains ( "PathModifyNode" ) && node. inputs . len ( ) < 3 {
77+ node. inputs . push ( NodeInput :: Reflection ( graph_craft:: document:: DocumentNodeMetadata :: DocumentNodePath ) ) ;
8078 }
8179 }
8280 }
@@ -821,7 +819,7 @@ impl NodeNetworkInterface {
821819 data_type,
822820 name,
823821 description,
824- resolved_type : format ! ( "{:?}" , input_type ) ,
822+ resolved_type : format ! ( "{input_type :?}" ) ,
825823 connected_to,
826824 } ,
827825 click_target,
@@ -1069,7 +1067,7 @@ impl NodeNetworkInterface {
10691067
10701068 pub fn reference ( & self , node_id : & NodeId , network_path : & [ NodeId ] ) -> Option < & Option < String > > {
10711069 let Some ( node_metadata) = self . node_metadata ( node_id, network_path) else {
1072- log:: error!( "Could not get reference for node: {:?}" , node_id ) ;
1070+ log:: error!( "Could not get reference for node: {node_id :?}" ) ;
10731071 return None ;
10741072 } ;
10751073 Some ( & node_metadata. persistent_metadata . reference )
@@ -2522,15 +2520,15 @@ impl NodeNetworkInterface {
25222520 InputConnector :: Node { node_id, input_index } => {
25232521 let input_metadata = self . transient_input_metadata ( node_id, * input_index, network_path) ?;
25242522 let TransientMetadata :: Loaded ( wire) = & input_metadata. wire else {
2525- log:: error!( "Could not load wire for input: {:?}" , input ) ;
2523+ log:: error!( "Could not load wire for input: {input :?}" ) ;
25262524 return None ;
25272525 } ;
25282526 wire. clone ( )
25292527 }
25302528 InputConnector :: Export ( export_index) => {
25312529 let network_metadata = self . network_metadata ( network_path) ?;
25322530 let Some ( TransientMetadata :: Loaded ( wire) ) = network_metadata. transient_metadata . wires . get ( * export_index) else {
2533- log:: error!( "Could not load wire for input: {:?}" , input ) ;
2531+ log:: error!( "Could not load wire for input: {input :?}" ) ;
25342532 return None ;
25352533 } ;
25362534 wire. clone ( )
@@ -2701,12 +2699,12 @@ impl NodeNetworkInterface {
27012699 return None ;
27022700 }
27032701 let Some ( input_position) = self . get_input_center ( & input, network_path) else {
2704- log:: error!( "Could not get dom rect for wire end in root node: {:?}" , input ) ;
2702+ log:: error!( "Could not get dom rect for wire end in root node: {input :?}" ) ;
27052703 return None ;
27062704 } ;
27072705 let upstream_output = OutputConnector :: node ( root_node. node_id , root_node. output_index ) ;
27082706 let Some ( output_position) = self . get_output_center ( & upstream_output, network_path) else {
2709- log:: error!( "Could not get dom rect for wire start in root node: {:?}" , upstream_output ) ;
2707+ log:: error!( "Could not get dom rect for wire start in root node: {upstream_output :?}" ) ;
27102708 return None ;
27112709 } ;
27122710 let vertical_end = input. node_id ( ) . is_some_and ( |node_id| self . is_layer ( & node_id, network_path) && input. input_index ( ) == 0 ) ;
@@ -2733,15 +2731,15 @@ impl NodeNetworkInterface {
27332731 /// Returns the vector subpath and a boolean of whether the wire should be thick.
27342732 pub fn vector_wire_from_input ( & mut self , input : & InputConnector , wire_style : GraphWireStyle , network_path : & [ NodeId ] ) -> Option < ( BezPath , bool ) > {
27352733 let Some ( input_position) = self . get_input_center ( input, network_path) else {
2736- log:: error!( "Could not get dom rect for wire end: {:?}" , input ) ;
2734+ log:: error!( "Could not get dom rect for wire end: {input :?}" ) ;
27372735 return None ;
27382736 } ;
27392737 // An upstream output could not be found, so the wire does not exist, but it should still be loaded as as empty vector
27402738 let Some ( upstream_output) = self . upstream_output_connector ( input, network_path) else {
27412739 return Some ( ( BezPath :: new ( ) , false ) ) ;
27422740 } ;
27432741 let Some ( output_position) = self . get_output_center ( & upstream_output, network_path) else {
2744- log:: error!( "Could not get dom rect for wire start: {:?}" , upstream_output ) ;
2742+ log:: error!( "Could not get dom rect for wire start: {upstream_output :?}" ) ;
27452743 return None ;
27462744 } ;
27472745 let vertical_end = input. node_id ( ) . is_some_and ( |node_id| self . is_layer ( & node_id, network_path) && input. input_index ( ) == 0 ) ;
@@ -3357,7 +3355,7 @@ impl NodeNetworkInterface {
33573355 self . selected_nodes ( )
33583356 . 0
33593357 . iter ( )
3360- . filter ( |node| self . is_layer ( & node, & [ ] ) )
3358+ . filter ( |node| self . is_layer ( node, & [ ] ) )
33613359 . filter_map ( |layer| self . document_metadata . bounding_box_viewport ( LayerNodeIdentifier :: new ( * layer, self ) ) )
33623360 . reduce ( Quad :: combine_bounds)
33633361 }
@@ -3366,7 +3364,7 @@ impl NodeNetworkInterface {
33663364 self . selected_nodes ( )
33673365 . 0
33683366 . iter ( )
3369- . filter ( |node| self . is_layer ( & node, & [ ] ) && !self . is_locked ( & node, & [ ] ) )
3367+ . filter ( |node| self . is_layer ( node, & [ ] ) && !self . is_locked ( node, & [ ] ) )
33703368 . filter_map ( |layer| self . document_metadata . bounding_box_viewport ( LayerNodeIdentifier :: new ( * layer, self ) ) )
33713369 . reduce ( Quad :: combine_bounds)
33723370 }
@@ -4138,7 +4136,7 @@ impl NodeNetworkInterface {
41384136 if let DocumentNodeImplementation :: Network ( network) = & node. implementation {
41394137 let number_of_exports = network. exports . len ( ) ;
41404138 let Some ( metadata) = self . node_metadata_mut ( node_id, network_path) else {
4141- log:: error!( "Could not get metadata for node: {:?}" , node_id ) ;
4139+ log:: error!( "Could not get metadata for node: {node_id :?}" ) ;
41424140 return ;
41434141 } ;
41444142 metadata. persistent_metadata . output_names . resize ( number_of_exports, "" . to_string ( ) ) ;
0 commit comments