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

Refactor to minimize newtype struct & unsafe #9

Merged
merged 8 commits into from
Nov 26, 2024

Conversation

woshiluo
Copy link
Member

@woshiluo woshiluo commented Nov 18, 2024

This pull request implement the following features or fixes:

  • Use const instead of static to make test run normally.
  • Refactor to avoid deserialize_newtype_struct as much as possible.
  • Refactor to use lead_slice and lead_str instead of create slice manually.

@woshiluo woshiluo changed the title Refactor Refactor to minimize newtype struct Nov 18, 2024
Also update example because we do not change fdt binary anymore.

Signed-off-by: Woshiluo Luo <[email protected]>
Signed-off-by: Woshiluo Luo <[email protected]>
@woshiluo woshiluo changed the title Refactor to minimize newtype struct Refactor to minimize newtype struct & unsafe Nov 19, 2024
Signed-off-by: Woshiluo Luo <[email protected]>

fix: fmt

Signed-off-by: Woshiluo Luo <[email protected]>
@woshiluo woshiluo marked this pull request as ready for review November 19, 2024 18:58
@guttatus guttatus requested a review from luojia65 November 20, 2024 03:06
Copy link
Member

@luojia65 luojia65 left a comment

Choose a reason for hiding this comment

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

LGTM

@luojia65 luojia65 merged commit 6d152e0 into rustsbi:main Nov 26, 2024
2 checks passed
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.

2 participants