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

library: Ported Switch to RUST #561

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Conversation

onkarrai06
Copy link
Contributor

Read the JS code and tried to convert it to RUST. However, this has an ownership error that I can't seem to resolve as Switch does not implement Copy. Would appreciate any help as I've spent a long time on this.

.vscode/settings.json Outdated Show resolved Hide resolved
src/Library/demos/Switch/code.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@saadulkh saadulkh left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise. @Hofer-Julian Have a look. :)

src/Library/demos/Switch/code.rs Outdated Show resolved Hide resolved
src/Library/demos/Switch/code.rs Outdated Show resolved Hide resolved
src/Library/demos/Switch/code.rs Outdated Show resolved Hide resolved
src/Library/demos/Switch/code.rs Outdated Show resolved Hide resolved
@onkarrai06
Copy link
Contributor Author

The suggestions above work on my side, waiting on final review :)

Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

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

The code looks good to me.
If @saadulkh can confirm that it works as expected, I will merge it.
Otherwise, I'll check tomorrow.

@saadulkh
Copy link
Contributor

Tried code from the latest commit 2980d94
Works as expected. @Hofer-Julian

Thanks for the addition. @onkarrai06

@sonnyp sonnyp removed their request for review August 31, 2023 10:51
@sonnyp sonnyp merged commit 4a8ef07 into workbenchdev:main Aug 31, 2023
1 check passed
@onkarrai06 onkarrai06 deleted the Workbench-Switch branch August 31, 2023 10:52
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