From edfc60dba802952324861b5072ade47ab6f3429a Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Fri, 20 Dec 2024 14:21:41 +0100 Subject: [PATCH] no ArchetypeFieldName in this house --- crates/viewer/re_view_graph/src/visualizers/edges.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/viewer/re_view_graph/src/visualizers/edges.rs b/crates/viewer/re_view_graph/src/visualizers/edges.rs index 3847a75ed358..71411402b4d8 100644 --- a/crates/viewer/re_view_graph/src/visualizers/edges.rs +++ b/crates/viewer/re_view_graph/src/visualizers/edges.rs @@ -54,8 +54,8 @@ impl VisualizerSystem for EdgesVisualizer { first: datatypes::Utf8, second: datatypes::Utf8, ); - let source: ArchetypeFieldName = "first".into(); - let target: ArchetypeFieldName = "second".into(); + const SOURCE: &str = "first"; + const TARGET: &str = "second"; for data_result in query.iter_visible_data_results(ctx, Self::identifier()) { let results = data_result @@ -68,10 +68,10 @@ impl VisualizerSystem for EdgesVisualizer { let graph_type = results.get_mono_with_fallback::(); let sources = all_edges - .slice_from_struct_field::(&source) + .slice_from_struct_field::(SOURCE) .map(|(_index, source)| source); let targets = all_edges - .slice_from_struct_field::(&target) + .slice_from_struct_field::(TARGET) .map(|(_index, target)| target); for (sources, targets) in itertools::izip!(sources, targets) {