Skip to content

Commit aad5576

Browse files
committed
Remove extra parens
1 parent 84846e9 commit aad5576

1 file changed

Lines changed: 48 additions & 48 deletions

File tree

editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
111111
document_node: DocumentNode {
112112
implementation: DocumentNodeImplementation::ProtoNode(memo::monitor::IDENTIFIER),
113113
inputs: vec![NodeInput::value(TaggedValue::None, true)],
114-
call_argument: (generic!(T)),
114+
call_argument: generic!(T),
115115
skip_deduplication: true,
116116
..Default::default()
117117
},
@@ -151,19 +151,19 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
151151
DocumentNode {
152152
inputs: vec![NodeInput::network(generic!(T), 0)],
153153
implementation: DocumentNodeImplementation::ProtoNode(memo::memo::IDENTIFIER),
154-
call_argument: (generic!(T)),
154+
call_argument: generic!(T),
155155
..Default::default()
156156
},
157157
DocumentNode {
158158
inputs: vec![NodeInput::node(NodeId(0), 0)],
159159
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::freeze_real_time::IDENTIFIER),
160-
call_argument: (generic!(T)),
160+
call_argument: generic!(T),
161161
..Default::default()
162162
},
163163
DocumentNode {
164164
inputs: vec![NodeInput::node(NodeId(1), 0)],
165165
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::boundless_footprint::IDENTIFIER),
166-
call_argument: (generic!(T)),
166+
call_argument: generic!(T),
167167
..Default::default()
168168
},
169169
]
@@ -233,33 +233,33 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
233233
DocumentNode {
234234
inputs: vec![NodeInput::network(generic!(T), 0)],
235235
implementation: DocumentNodeImplementation::ProtoNode(graphic::to_graphic::IDENTIFIER),
236-
call_argument: (concrete!(Context)),
236+
call_argument: concrete!(Context),
237237
..Default::default()
238238
},
239239
// Secondary (left) input type coercion
240240
DocumentNode {
241241
inputs: vec![NodeInput::network(generic!(T), 1)],
242242
implementation: DocumentNodeImplementation::ProtoNode(graphic::wrap_graphic::IDENTIFIER),
243-
call_argument: (concrete!(Context)),
243+
call_argument: concrete!(Context),
244244
..Default::default()
245245
},
246246
// Store the ID of the parent node (which encapsulates this sub-network) in each row we are extending the table with.
247247
DocumentNode {
248248
inputs: vec![NodeInput::node(NodeId(1), 0), NodeInput::Reflection(graph_craft::document::DocumentNodeMetadata::DocumentNodePath)],
249249
implementation: DocumentNodeImplementation::ProtoNode(graphic::source_node_id::IDENTIFIER),
250-
call_argument: (concrete!(Context)),
250+
call_argument: concrete!(Context),
251251
..Default::default()
252252
},
253253
// The monitor node is used to display a thumbnail in the UI
254254
DocumentNode {
255255
inputs: vec![NodeInput::node(NodeId(2), 0)],
256256
implementation: DocumentNodeImplementation::ProtoNode(memo::monitor::IDENTIFIER),
257-
call_argument: (concrete!(Context)),
257+
call_argument: concrete!(Context),
258258
skip_deduplication: true,
259259
..Default::default()
260260
},
261261
DocumentNode {
262-
call_argument: (generic!(T)),
262+
call_argument: generic!(T),
263263
inputs: vec![NodeInput::node(NodeId(0), 0), NodeInput::node(NodeId(3), 0)],
264264
implementation: DocumentNodeImplementation::ProtoNode(graphic::extend::IDENTIFIER),
265265
..Default::default()
@@ -349,7 +349,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
349349
nodes: [
350350
// Ensure this ID is kept in sync with the ID in set_alias so that the name input is kept in sync with the alias
351351
DocumentNode {
352-
call_argument: (generic!(T)),
352+
call_argument: generic!(T),
353353
implementation: DocumentNodeImplementation::ProtoNode(artboard::create_artboard::IDENTIFIER),
354354
inputs: vec![
355355
NodeInput::network(concrete!(TaggedValue), 1),
@@ -365,20 +365,20 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
365365
DocumentNode {
366366
inputs: vec![NodeInput::node(NodeId(0), 0), NodeInput::Reflection(graph_craft::document::DocumentNodeMetadata::DocumentNodePath)],
367367
implementation: DocumentNodeImplementation::ProtoNode(graphic::source_node_id::IDENTIFIER),
368-
call_argument: (concrete!(Context)),
368+
call_argument: concrete!(Context),
369369
..Default::default()
370370
},
371371
// The monitor node is used to display a thumbnail in the UI.
372372
// TODO: Check if thumbnail is reversed
373373
DocumentNode {
374374
inputs: vec![NodeInput::node(NodeId(1), 0)],
375375
implementation: DocumentNodeImplementation::ProtoNode(memo::monitor::IDENTIFIER),
376-
call_argument: (generic!(T)),
376+
call_argument: generic!(T),
377377
skip_deduplication: true,
378378
..Default::default()
379379
},
380380
DocumentNode {
381-
call_argument: (concrete!(Context)),
381+
call_argument: concrete!(Context),
382382
inputs: vec![
383383
NodeInput::network(graphene_std::Type::Fn(Box::new(concrete!(Context)), Box::new(concrete!(Table<Artboard>))), 0),
384384
NodeInput::node(NodeId(2), 0),
@@ -495,13 +495,13 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
495495
nodes: [
496496
DocumentNode {
497497
inputs: vec![NodeInput::value(TaggedValue::None, false), NodeInput::scope("editor-api"), NodeInput::network(concrete!(String), 1)],
498-
call_argument: (concrete!(Context)),
498+
call_argument: concrete!(Context),
499499
implementation: DocumentNodeImplementation::ProtoNode(wasm_application_io::load_resource::IDENTIFIER),
500500
..Default::default()
501501
},
502502
DocumentNode {
503503
inputs: vec![NodeInput::node(NodeId(0), 0)],
504-
call_argument: (concrete!(Context)),
504+
call_argument: concrete!(Context),
505505
implementation: DocumentNodeImplementation::ProtoNode(wasm_application_io::decode_image::IDENTIFIER),
506506
..Default::default()
507507
},
@@ -568,7 +568,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
568568
..Default::default()
569569
},
570570
DocumentNode {
571-
call_argument: (concrete!(Context)),
571+
call_argument: concrete!(Context),
572572
inputs: vec![NodeInput::node(NodeId(0), 0)],
573573
implementation: DocumentNodeImplementation::ProtoNode(memo::memo::IDENTIFIER),
574574
..Default::default()
@@ -716,7 +716,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
716716
category: "Raster: Pattern",
717717
node_template: NodeTemplate {
718718
document_node: DocumentNode {
719-
call_argument: (concrete!(Context)),
719+
call_argument: concrete!(Context),
720720
implementation: DocumentNodeImplementation::ProtoNode(raster_nodes::std_nodes::noise_pattern::IDENTIFIER),
721721
inputs: vec![
722722
NodeInput::value(TaggedValue::None, false),
@@ -783,7 +783,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
783783
NodeInput::value(TaggedValue::RedGreenBlueAlpha(RedGreenBlueAlpha::Red), false),
784784
],
785785
implementation: DocumentNodeImplementation::ProtoNode(raster_nodes::adjustments::extract_channel::IDENTIFIER),
786-
call_argument: (generic!(T)),
786+
call_argument: generic!(T),
787787
..Default::default()
788788
},
789789
DocumentNode {
@@ -792,7 +792,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
792792
NodeInput::value(TaggedValue::RedGreenBlueAlpha(RedGreenBlueAlpha::Green), false),
793793
],
794794
implementation: DocumentNodeImplementation::ProtoNode(raster_nodes::adjustments::extract_channel::IDENTIFIER),
795-
call_argument: (generic!(T)),
795+
call_argument: generic!(T),
796796
..Default::default()
797797
},
798798
DocumentNode {
@@ -801,7 +801,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
801801
NodeInput::value(TaggedValue::RedGreenBlueAlpha(RedGreenBlueAlpha::Blue), false),
802802
],
803803
implementation: DocumentNodeImplementation::ProtoNode(raster_nodes::adjustments::extract_channel::IDENTIFIER),
804-
call_argument: (generic!(T)),
804+
call_argument: generic!(T),
805805
..Default::default()
806806
},
807807
DocumentNode {
@@ -810,7 +810,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
810810
NodeInput::value(TaggedValue::RedGreenBlueAlpha(RedGreenBlueAlpha::Alpha), false),
811811
],
812812
implementation: DocumentNodeImplementation::ProtoNode(raster_nodes::adjustments::extract_channel::IDENTIFIER),
813-
call_argument: (generic!(T)),
813+
call_argument: generic!(T),
814814
..Default::default()
815815
},
816816
]
@@ -888,13 +888,13 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
888888
DocumentNode {
889889
inputs: vec![NodeInput::network(concrete!(Table<Raster<CPU>>), 0), NodeInput::value(TaggedValue::XY(XY::X), false)],
890890
implementation: DocumentNodeImplementation::ProtoNode(extract_xy::extract_xy::IDENTIFIER),
891-
call_argument: (generic!(T)),
891+
call_argument: generic!(T),
892892
..Default::default()
893893
},
894894
DocumentNode {
895895
inputs: vec![NodeInput::network(concrete!(Table<Raster<CPU>>), 0), NodeInput::value(TaggedValue::XY(XY::Y), false)],
896896
implementation: DocumentNodeImplementation::ProtoNode(extract_xy::extract_xy::IDENTIFIER),
897-
call_argument: (generic!(T)),
897+
call_argument: generic!(T),
898898
..Default::default()
899899
},
900900
]
@@ -962,7 +962,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
962962
NodeInput::network(concrete!(Vec<brush::brush_stroke::BrushStroke>), 1),
963963
NodeInput::network(concrete!(BrushCache), 2),
964964
],
965-
call_argument: (concrete!(Context)),
965+
call_argument: concrete!(Context),
966966
implementation: DocumentNodeImplementation::ProtoNode(brush::brush::brush::IDENTIFIER),
967967
..Default::default()
968968
}]
@@ -1013,7 +1013,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
10131013
document_node: DocumentNode {
10141014
implementation: DocumentNodeImplementation::ProtoNode(memo::memo::IDENTIFIER),
10151015
inputs: vec![NodeInput::value(TaggedValue::Raster(Default::default()), true)],
1016-
call_argument: (concrete!(Context)),
1016+
call_argument: concrete!(Context),
10171017
..Default::default()
10181018
},
10191019
persistent_node_metadata: DocumentNodePersistentMetadata {
@@ -1032,7 +1032,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
10321032
document_node: DocumentNode {
10331033
implementation: DocumentNodeImplementation::ProtoNode(memo::impure_memo::IDENTIFIER),
10341034
inputs: vec![NodeInput::value(TaggedValue::Raster(Default::default()), true)],
1035-
call_argument: (concrete!(Context)),
1035+
call_argument: concrete!(Context),
10361036
..Default::default()
10371037
},
10381038
persistent_node_metadata: DocumentNodePersistentMetadata {
@@ -1054,13 +1054,13 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
10541054
exports: vec![NodeInput::node(NodeId(1), 0)],
10551055
nodes: [
10561056
DocumentNode {
1057-
call_argument: (concrete!(Context)),
1057+
call_argument: concrete!(Context),
10581058
inputs: vec![NodeInput::scope("editor-api")],
10591059
implementation: DocumentNodeImplementation::ProtoNode(wgpu_executor::create_gpu_surface::IDENTIFIER),
10601060
..Default::default()
10611061
},
10621062
DocumentNode {
1063-
call_argument: (concrete!(Context)),
1063+
call_argument: concrete!(Context),
10641064
inputs: vec![NodeInput::node(NodeId(0), 0)],
10651065
implementation: DocumentNodeImplementation::ProtoNode(memo::impure_memo::IDENTIFIER),
10661066
..Default::default()
@@ -1126,12 +1126,12 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
11261126
},
11271127
DocumentNode {
11281128
inputs: vec![NodeInput::network(concrete!(Table<Raster<CPU>>), 0), NodeInput::node(NodeId(0), 0)],
1129-
call_argument: (generic!(T)),
1129+
call_argument: generic!(T),
11301130
implementation: DocumentNodeImplementation::ProtoNode(wgpu_executor::texture_upload::upload_texture::IDENTIFIER),
11311131
..Default::default()
11321132
},
11331133
DocumentNode {
1134-
call_argument: (generic!(T)),
1134+
call_argument: generic!(T),
11351135
inputs: vec![NodeInput::node(NodeId(1), 0)],
11361136
implementation: DocumentNodeImplementation::ProtoNode(memo::impure_memo::IDENTIFIER),
11371137
..Default::default()
@@ -1247,7 +1247,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
12471247
DocumentNode {
12481248
inputs: vec![NodeInput::network(concrete!(Table<Vector>), 0)],
12491249
implementation: DocumentNodeImplementation::ProtoNode(memo::monitor::IDENTIFIER),
1250-
call_argument: (generic!(T)),
1250+
call_argument: generic!(T),
12511251
skip_deduplication: true,
12521252
..Default::default()
12531253
},
@@ -1257,7 +1257,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
12571257
NodeInput::network(concrete!(graphene_std::vector::VectorModification), 1),
12581258
NodeInput::Reflection(graph_craft::document::DocumentNodeMetadata::DocumentNodePath),
12591259
],
1260-
call_argument: (generic!(T)),
1260+
call_argument: generic!(T),
12611261
implementation: DocumentNodeImplementation::ProtoNode(vector::path_modify::IDENTIFIER),
12621262
..Default::default()
12631263
},
@@ -1317,7 +1317,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
13171317
node_template: NodeTemplate {
13181318
document_node: DocumentNode {
13191319
implementation: DocumentNodeImplementation::ProtoNode(text::text::IDENTIFIER),
1320-
call_argument: (concrete!(Context)),
1320+
call_argument: concrete!(Context),
13211321
inputs: vec![
13221322
NodeInput::scope("editor-api"),
13231323
NodeInput::value(TaggedValue::String("Lorem ipsum".to_string()), false),
@@ -1427,7 +1427,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
14271427
DocumentNode {
14281428
inputs: vec![NodeInput::network(generic!(T), 0)],
14291429
implementation: DocumentNodeImplementation::ProtoNode(memo::monitor::IDENTIFIER),
1430-
call_argument: (generic!(T)),
1430+
call_argument: generic!(T),
14311431
skip_deduplication: true,
14321432
..Default::default()
14331433
},
@@ -1439,7 +1439,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
14391439
NodeInput::network(concrete!(DVec2), 3),
14401440
NodeInput::network(concrete!(DVec2), 4),
14411441
],
1442-
call_argument: (concrete!(Context)),
1442+
call_argument: concrete!(Context),
14431443
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::transform::IDENTIFIER),
14441444
..Default::default()
14451445
},
@@ -1524,25 +1524,25 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
15241524
DocumentNode {
15251525
inputs: vec![NodeInput::network(concrete!(Table<Vector>), 0), NodeInput::network(concrete!(vector::style::Fill), 1)],
15261526
implementation: DocumentNodeImplementation::ProtoNode(path_bool::boolean_operation::IDENTIFIER),
1527-
call_argument: (generic!(T)),
1527+
call_argument: generic!(T),
15281528
..Default::default()
15291529
},
15301530
DocumentNode {
15311531
inputs: vec![NodeInput::node(NodeId(0), 0)],
15321532
implementation: DocumentNodeImplementation::ProtoNode(memo::memo::IDENTIFIER),
1533-
call_argument: (generic!(T)),
1533+
call_argument: generic!(T),
15341534
..Default::default()
15351535
},
15361536
DocumentNode {
15371537
inputs: vec![NodeInput::node(NodeId(1), 0)],
15381538
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::freeze_real_time::IDENTIFIER),
1539-
call_argument: (generic!(T)),
1539+
call_argument: generic!(T),
15401540
..Default::default()
15411541
},
15421542
DocumentNode {
15431543
inputs: vec![NodeInput::node(NodeId(2), 0)],
15441544
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::boundless_footprint::IDENTIFIER),
1545-
call_argument: (generic!(T)),
1545+
call_argument: generic!(T),
15461546
..Default::default()
15471547
},
15481548
]
@@ -1622,7 +1622,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
16221622
DocumentNode {
16231623
inputs: vec![NodeInput::network(concrete!(Table<Vector>), 0)],
16241624
implementation: DocumentNodeImplementation::ProtoNode(vector::subpath_segment_lengths::IDENTIFIER),
1625-
call_argument: (generic!(T)),
1625+
call_argument: generic!(T),
16261626
..Default::default()
16271627
},
16281628
DocumentNode {
@@ -1637,25 +1637,25 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
16371637
NodeInput::node(NodeId(0), 0),
16381638
],
16391639
implementation: DocumentNodeImplementation::ProtoNode(vector::sample_polyline::IDENTIFIER),
1640-
call_argument: (generic!(T)),
1640+
call_argument: generic!(T),
16411641
..Default::default()
16421642
},
16431643
DocumentNode {
16441644
inputs: vec![NodeInput::node(NodeId(1), 0)],
16451645
implementation: DocumentNodeImplementation::ProtoNode(memo::memo::IDENTIFIER),
1646-
call_argument: (generic!(T)),
1646+
call_argument: generic!(T),
16471647
..Default::default()
16481648
},
16491649
DocumentNode {
16501650
inputs: vec![NodeInput::node(NodeId(2), 0)],
16511651
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::freeze_real_time::IDENTIFIER),
1652-
call_argument: (generic!(T)),
1652+
call_argument: generic!(T),
16531653
..Default::default()
16541654
},
16551655
DocumentNode {
16561656
inputs: vec![NodeInput::node(NodeId(3), 0)],
16571657
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::boundless_footprint::IDENTIFIER),
1658-
call_argument: (generic!(T)),
1658+
call_argument: generic!(T),
16591659
..Default::default()
16601660
},
16611661
]
@@ -1791,26 +1791,26 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
17911791
NodeInput::network(concrete!(f64), 1),
17921792
NodeInput::network(concrete!(u32), 2),
17931793
],
1794-
call_argument: (generic!(T)),
1794+
call_argument: generic!(T),
17951795
implementation: DocumentNodeImplementation::ProtoNode(vector::poisson_disk_points::IDENTIFIER),
17961796
..Default::default()
17971797
},
17981798
DocumentNode {
17991799
inputs: vec![NodeInput::node(NodeId(0), 0)],
18001800
implementation: DocumentNodeImplementation::ProtoNode(memo::memo::IDENTIFIER),
1801-
call_argument: (generic!(T)),
1801+
call_argument: generic!(T),
18021802
..Default::default()
18031803
},
18041804
DocumentNode {
18051805
inputs: vec![NodeInput::node(NodeId(1), 0)],
18061806
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::freeze_real_time::IDENTIFIER),
1807-
call_argument: (generic!(T)),
1807+
call_argument: generic!(T),
18081808
..Default::default()
18091809
},
18101810
DocumentNode {
18111811
inputs: vec![NodeInput::node(NodeId(2), 0)],
18121812
implementation: DocumentNodeImplementation::ProtoNode(transform_nodes::boundless_footprint::IDENTIFIER),
1813-
call_argument: (generic!(T)),
1813+
call_argument: generic!(T),
18141814
..Default::default()
18151815
},
18161816
]

0 commit comments

Comments
 (0)