Skip to content

refactor(ast/estree): convert_utf8_to_utf16 take &mut slice of errors, not &mut Vec#10672

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-28-refactor_ast_estree_convert_utf8_to_utf16_take_mut_slice_of_errors_not_mut_vec_
Apr 28, 2025
Merged

refactor(ast/estree): convert_utf8_to_utf16 take &mut slice of errors, not &mut Vec#10672
graphite-app[bot] merged 1 commit intomainfrom
04-28-refactor_ast_estree_convert_utf8_to_utf16_take_mut_slice_of_errors_not_mut_vec_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Apr 28, 2025

Pure refactor. convert_utf8_to_utf16 doesn't need to take a &mut Vec<OxcError>. &mut [OxcError] is sufficient, and the extra indirection of &mut Vec is not ideal.

Copy link
Member Author

overlookmotel commented Apr 28, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review April 28, 2025 14:50
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Apr 28, 2025
@overlookmotel
Copy link
Member Author

Small change, and uncontroversial, so merging without review.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Apr 28, 2025
Copy link
Member Author

overlookmotel commented Apr 28, 2025

Merge activity

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 28, 2025

CodSpeed Instrumentation Performance Report

Merging #10672 will not alter performance

Comparing 04-28-refactor_ast_estree_convert_utf8_to_utf16_take_mut_slice_of_errors_not_mut_vec_ (06fde2a) with main (50bddbb)

Summary

✅ 36 untouched benchmarks

…rors, not `&mut Vec` (#10672)

Pure refactor. `convert_utf8_to_utf16` doesn't need to take a `&mut Vec<OxcError>`. `&mut [OxcError]` is sufficient, and the extra indirection of `&mut Vec` is not ideal.
@graphite-app graphite-app bot force-pushed the 04-28-refactor_ast_estree_convert_utf8_to_utf16_take_mut_slice_of_errors_not_mut_vec_ branch from 0dfe514 to 06fde2a Compare April 28, 2025 15:03
@graphite-app graphite-app bot merged commit 06fde2a into main Apr 28, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 04-28-refactor_ast_estree_convert_utf8_to_utf16_take_mut_slice_of_errors_not_mut_vec_ branch April 28, 2025 15:09
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant