Skip to content

Conversation

@calintje
Copy link
Contributor

@calintje calintje commented Jun 20, 2025

Problem

The From<TickArray> for TickArrayFacade implementation had a circular reference causing infinite recursion and stack overflow. Specifically, the implementation called val.into(), which is shorthand for From::from(val) and looks for a From<TickArray> implementation for TickArrayFacade, resulting in recursively calling itself. This was confirmed with a test that demonstrated the issue by attempting to convert a minimal TickArray to TickArrayFacade.

Changes

  • Replace recursive val.into() with proper match statement to delegate to specific variant implementations
  • Add tests to verify both fixed and dynamic tick array conversions work correctly

Copy link
Collaborator

@yugure-orca yugure-orca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yugure-orca yugure-orca merged commit eccb25e into wjthieme-yugure/variable-tas Jun 20, 2025
1 check passed
@yugure-orca yugure-orca deleted the calintje/variable-tas-patch branch June 20, 2025 11:06
yugure-orca added a commit that referenced this pull request Jul 3, 2025
* Squash commit from variable-tas-release

This commit squashes the changes from the branch variable-tas-release.
The branch variable-tas-release is based on the original branch wjthieme/variable-tas.

Co-authored-by: yugure-orca <[email protected]>

* changeset

* Fix and test (#982)

* changeset update

* Update Cargo.lock

---------

Co-authored-by: Will <[email protected]>
Co-authored-by: Calin <[email protected]>
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