Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Sep 27, 2024
1 parent 9fd7cd0 commit b6e8ab6
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,8 @@ impl QueryV2 {
.push(desc.timeline.as_str().into());
}
ColumnSelector::Component(desc) => {
let blueprint_component_descriptor = datatypes::ComponentColumnSelector {
entity_path: (&desc.entity_path).into(),
component: desc.component.as_str().into(),
};
let blueprint_component_descriptor =
datatypes::ComponentColumnSelector::new(&desc.entity_path, desc.component);

selected_columns
.component_columns
Expand Down Expand Up @@ -250,10 +248,10 @@ impl QueryV2 {
}
ColumnDescriptor::Component(desc) => {
let blueprint_component_descriptor =
datatypes::ComponentColumnSelector {
entity_path: (&desc.entity_path).into(),
component: desc.component_name.as_str().into(),
};
datatypes::ComponentColumnSelector::new(
&desc.entity_path,
desc.component_name,
);

selected_columns
.component_columns
Expand All @@ -277,10 +275,9 @@ impl QueryV2 {
entity_path,
component_name,
} => {
let blueprint_component_descriptor = datatypes::ComponentColumnSelector {
entity_path: (&entity_path).into(),
component: component_name.as_str().into(),
};
let blueprint_component_descriptor =
datatypes::ComponentColumnSelector::new(&entity_path, component_name);

selected_columns
.component_columns
.retain(|desc| desc != &blueprint_component_descriptor);
Expand Down

0 comments on commit b6e8ab6

Please sign in to comment.