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

Remove extraneous use statement (#4193) #2

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

drunkleen
Copy link

In Listing 14-7 of Chapter 14, the use add_one; statement is redundant and can be removed. Before the Rust 2018 edition, this statement was required to bring the add_one crate into scope, so it likely got missed during refactorings from that transition.

By removing this line, the code becomes more concise and reflects the current best practices for using external crates in Rust.

Issue rust-lang#4186


In Listing 14-7 of Chapter 14, the `use add_one;` statement is redundant
and can be removed. Before the Rust 2018 edition, this statement was
required to bring the `add_one` crate into scope, so it likely got
missed during refactorings from that transition.

By removing this line, the code becomes more concise and reflects the
current best practices for using external crates in Rust.

Issue #4186

---------

Co-authored-by: Chris Krycho <[email protected]>
@drunkleen drunkleen merged commit 281dc99 into persian-rust:persian-draft Jan 8, 2025
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