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

Add boxed module #250

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Add boxed module #250

merged 3 commits into from
Feb 21, 2024

Conversation

hackaugusto
Copy link
Contributor

Built on top of #249

This moves the re-export of Box into a module named boxed. So that downstream crates write use utils::boxed::* and circumvent the issue with #249

The 2021 prelude includes TryFrom and TryInto [1]. And recently the
nigtlhy channel started linting for this duplicated imports and emitting
warnings. This removes the redundant imports.

1: https://doc.rust-lang.org/core/prelude/rust_2021/index.html
@hackaugusto hackaugusto changed the title Hacka export boxed Add boxed module Feb 21, 2024
This allows downstream packages to write `use boxed::*`, and circumvent
the issue with redundant imports.
Copy link
Collaborator

@irakliyk irakliyk left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

@irakliyk irakliyk merged commit 47c12aa into facebook:main Feb 21, 2024
9 checks passed
@hackaugusto hackaugusto deleted the hacka-export-boxed branch February 22, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants