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

docs: don't use wildcard version, replace 'extern crate' with 'use' #531

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

yjhn
Copy link
Contributor

@yjhn yjhn commented Jun 15, 2023

Wildcard version specifications are considered bad practice.
use can be used to import crate items since Rust edition 2018.

@coveralls
Copy link

Coverage Status

coverage: 80.932%. remained the same when pulling 244bce3 on yjhn:patch-1 into da7daea on rust-bio:master.

//!
//! ```rust
//! extern crate bio;
Copy link
Contributor

Choose a reason for hiding this comment

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

Good find- though it looks like the repo has a number of instances of this pattern. Would you feel comfortable replacing or deleting, as appropriate, those as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, sounds good! Those are remainders from the early days of Rust. Rust-bio development started in 2015.

@johanneskoester johanneskoester merged commit bc307de into rust-bio:master Sep 12, 2023
10 checks passed
jch-13 pushed a commit to jch-13/rust-bio that referenced this pull request Dec 20, 2023
…ust-bio#531)

* docs: don't use wildcard version, replace 'extern crate' with 'use'

* docs: don't imply that crate items cannot be used before 'use bio'
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.

None yet

4 participants