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

Various cleanups #673

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Various cleanups #673

wants to merge 3 commits into from

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Sep 18, 2024

  • Be more consistent about avoiding imports of core and alloc types through mystd.
  • Avoid two unnecessary allocations in handle_split_dwarf.
  • Couple of other minor changes.

…ible

This makes the api surface we require from std clearer. It is also more
consistent with existing direct usage of core and alloc.
Also avoids two unnecessary allocations in handle_split_dwarf.
match Error::last_os_error().raw_os_error() {
Some(libc::ENOMEM) => {
match errno() {
libc::ENOMEM => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not really sure if I should keep this change. If you want I will drop this commit.

@bjorn3
Copy link
Member Author

bjorn3 commented Sep 22, 2024

Just noticed that #666 also did most of the changes in this PR. Will rebase once that PR os merged.

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.

1 participant