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(darwin): optimize string allocation #1768

Merged
merged 1 commit into from
Dec 31, 2024
Merged

Conversation

uubulb
Copy link
Contributor

@uubulb uubulb commented Dec 30, 2024

Introduce a new CStr type to simplify string conversion, making it less error-prone.
Also added some comments to improve readability and unit test for sensors package.

Supersedes #1725

Copy link
Owner

@shirou shirou left a comment

Choose a reason for hiding this comment

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

Amazing. CStr makes the existing code much more readable. Thank you!

@shirou shirou merged commit 252dcbf into shirou:master Dec 31, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants