Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvements #701

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Small improvements #701

merged 2 commits into from
Aug 21, 2023

Conversation

pictos
Copy link
Contributor

@pictos pictos commented Aug 7, 2023

I'm not using the template, because I added two small fixes on the code.

  1. Change the SKShadow to be a readonly record struct, I believe we want it to be immutable, and record struct isn't immutable, we to add the readonly modifier;
  2. Use Array.Empty<T> to avoid allocations.

@Xiaoy312 Xiaoy312 self-requested a review August 7, 2023 23:16
@agneszitte agneszitte merged commit 1633a92 into main Aug 21, 2023
15 checks passed
@agneszitte agneszitte deleted the pj/fixing-record-struct branch August 21, 2023 20:01
@agneszitte
Copy link
Contributor

@Mergifyio backport legacy/3x

@mergify
Copy link
Contributor

mergify bot commented Aug 21, 2023

backport legacy/3x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 21, 2023
(cherry picked from commit 1633a92)
agneszitte pushed a commit that referenced this pull request Aug 22, 2023
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
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.

4 participants