Skip to content

Implement more fmt traits for addr types#237

Merged
phil-opp merged 4 commits into
rust-osdev:masterfrom
dbeckwith:dbeckwith.fmt-impls
Mar 27, 2021
Merged

Implement more fmt traits for addr types#237
phil-opp merged 4 commits into
rust-osdev:masterfrom
dbeckwith:dbeckwith.fmt-impls

Conversation

@dbeckwith
Copy link
Copy Markdown
Contributor

Some minor improvements for debug traits for the address types:

  • Adds fmt::Binary, fmt::LowerHex, fmt::Octal, fmt::UpperHex impls for VirtAddr
  • Adds fmt::Pointer impls for VirtAddr and PhysAddr
  • Use fmt::Formatter::debug_tuple in the fmt::Debug impls so formatting flags are respected

Comment thread src/addr.rs
@dbeckwith dbeckwith changed the title Implement fmt traits for addr types Implement more fmt traits for addr types Mar 27, 2021
@dbeckwith
Copy link
Copy Markdown
Contributor Author

The windows build failures seem unrelated to my changes.

@phil-opp
Copy link
Copy Markdown
Member

Looks good to me, thanks! The Windows build is currently broken because of a bug in QEMU, so it has nothing to do with this PR.

@phil-opp phil-opp merged commit 7c2b26d into rust-osdev:master Mar 27, 2021
phil-opp added a commit that referenced this pull request Mar 27, 2021
@phil-opp
Copy link
Copy Markdown
Member

Published as v0.13.4.

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