-
-
Notifications
You must be signed in to change notification settings - Fork 747
refactor(allocator): remove AllocError from fixed size allocator
#17077
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(allocator): remove AllocError from fixed size allocator
#17077
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the fixed size allocator by removing the unused AllocError type and replacing it with the unit type () in error results. As noted in the description, the AllocError type was pointless since the error contents were never examined.
- Removed the
AllocErrorstruct definition and itsDisplayandErrortrait implementations - Simplified error handling by using
Result<T, ()>instead ofResult<T, AllocError> - Cleaned up unused imports (
error::Errorandfmt)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CodSpeed Performance ReportMerging #17077 will not alter performanceComparing Summary
Footnotes
|
776c3c7 to
fb9e193
Compare
024ab0a to
e8c0e07
Compare
Merge activity
|
e8c0e07 to
d37d728
Compare

Follow-on after #17022.
AllocErrortype is pointless, as we never touch the contents ofResult::Err. Remove it.