Skip to content

Commit

Permalink
no ArchetypeFieldName in this house
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 20, 2024
1 parent da495e6 commit edfc60d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/viewer/re_view_graph/src/visualizers/edges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -68,10 +68,10 @@ impl VisualizerSystem for EdgesVisualizer {
let graph_type = results.get_mono_with_fallback::<components::GraphType>();

let sources = all_edges
.slice_from_struct_field::<String>(&source)
.slice_from_struct_field::<String>(SOURCE)
.map(|(_index, source)| source);
let targets = all_edges
.slice_from_struct_field::<String>(&target)
.slice_from_struct_field::<String>(TARGET)
.map(|(_index, target)| target);

for (sources, targets) in itertools::izip!(sources, targets) {
Expand Down

0 comments on commit edfc60d

Please sign in to comment.