Skip to content

Conversation

samueltardieu
Copy link
Member

Those two structs are exported by making the addr module public.

Close #162

Those two structs are exported by making the `addr` module public.
@samueltardieu
Copy link
Member Author

Tell me if you would prefer to have an reexport at the top-level. I thought that exporting them as addr::VirtAddrNotValid and addr::PhysAddrNotValid would avoid polluting code completion for x86_64::Virt in IDE.

Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

That was quick, thank you!

I thought that exporting them as addr::VirtAddrNotValid and addr::PhysAddrNotValid would avoid polluting code completion for x86_64::Virt in IDE.

Sounds reasonable!

@samueltardieu
Copy link
Member Author

cargo clippy run (using 1.46.0-nightly (feb3536eb 2020-06-09)) is clean for me, and the failed lints have nothing to do with this change.

@phil-opp
Copy link
Member

The clippy errors are because of rust-lang/rust-clippy#5704. I hope that rust-lang/rust-clippy#5705 lands soon so that the lint that causes the error is disabled by default.

@phil-opp phil-opp merged commit 3eb1532 into rust-osdev:master Jun 19, 2020
phil-opp added a commit that referenced this pull request Jun 19, 2020
@phil-opp
Copy link
Member

Published as version 0.11.1.

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.

Errors are not public
2 participants