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

Change SPICE kernel singleton structure #167

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Change SPICE kernel singleton structure #167

merged 2 commits into from
Jan 8, 2025

Conversation

dahlend
Copy link
Collaborator

@dahlend dahlend commented Jan 8, 2025

Fixes #162

This simplifies the SPICE kernel memory management by using the lazy_static to do the singleton initialization.

While the previous implementation likely would never have issues, this is much simpler to read, and this removes the need to suppress the warning from the rust analyzer. Static analysis is the best.

Benchmarks show no change (as expected).

@dahlend dahlend merged commit df3dab1 into main Jan 8, 2025
2 checks passed
@dahlend dahlend deleted the fix-162 branch January 8, 2025 18:18
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.

SPK/PCK singleton structure now raising errors during compilation
1 participant