Skip to content

Commit

Permalink
Remove unnecessary type annotation
Browse files Browse the repository at this point in the history
`SelectionResult::new` is not generic, compiler already knows the type.
  • Loading branch information
aqrln committed Nov 30, 2023
1 parent 6ee982b commit d56319a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query-engine/query-structure/src/selection_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl SelectionResult {
/// Projects this `SelectionResult` into a smaller or equal `SelectionResult`
/// according to the provided [`FieldSelection`].
pub fn project(&self, field_selection: &FieldSelection) -> SelectionResult {
let pairs: Vec<_> = field_selection
let pairs = field_selection
.selections()
.map(|selected_field| {
self.get(selected_field)
Expand Down

0 comments on commit d56319a

Please sign in to comment.