Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 5, 2023
1 parent b4a4598 commit f4b5d6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macro/src/dialect/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl<'a> Operation<'a> {
*preceding_simple_count += 1;
}
}
VariadicKind::AttributeSized {} => {}
VariadicKind::AttributeSized => {}
}
}

Expand Down
2 changes: 1 addition & 1 deletion macro/src/dialect/operation/accessors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl<'a> OperationField<'a> {

quote! { #compute_start_length #get_elements }
}
VariadicKind::AttributeSized {} => {
VariadicKind::AttributeSized => {
let attribute_name = format!("{}_segment_sizes", kind_str);
let compute_start_length = quote! {
let attribute =
Expand Down
2 changes: 1 addition & 1 deletion macro/src/dialect/operation/field_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<'a> FieldKind<'a> {
};
if !constraint.is_variadic() {
Self::create_result_type(base_type)
} else if let VariadicKind::AttributeSized {} = variadic_kind {
} else if let VariadicKind::AttributeSized = variadic_kind {
Self::create_result_type(Self::create_iterator_type(base_type))
} else {
Self::create_iterator_type(base_type)
Expand Down

0 comments on commit f4b5d6d

Please sign in to comment.