Skip to content

Conversation

@kkoyung
Copy link
Member

@kkoyung kkoyung commented Nov 14, 2025

This patch flattens nested match arms in NormalizedAlgorithm to simplify our code. Moreover, primarily matching the algorithm names, instead of matching the enum variant types, makes more sense, since some algorithms share the same enum variant type.

Testing: Refactoring. Existing tests suffice.

This patch flattens nested match arms in `NormalizedAlgorithm` to
simplify our code. Moreover, primarily matching the algorithm names,
instead of matching the enum variant types, makes more sense, since some
algorithms share the same enum variant type.

Testing: Refactoring. Existing tests suffice.

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
@kkoyung kkoyung requested a review from gterzian as a code owner November 14, 2025 10:27
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 14, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 14, 2025
@Taym95 Taym95 enabled auto-merge November 14, 2025 10:29
@Taym95 Taym95 added this pull request to the merge queue Nov 14, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 14, 2025
Merged via the queue into servo:main with commit 3d56aaa Nov 14, 2025
35 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 14, 2025
@kkoyung kkoyung deleted the flatten-match branch November 15, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants