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

Disallow warnings in doctests #330

Merged
merged 4 commits into from Nov 7, 2022
Merged

Conversation

metasim
Copy link
Contributor

@metasim metasim commented Nov 7, 2022

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

This helps us ensure the documentation abides by deprecations.

@metasim metasim marked this pull request as ready for review November 7, 2022 18:23
/// ```
/// ```text
/// Cloud optimized GeoTIFF generator
/// ```
#[deprecated(note = "Please use `DriverManager::get_driver_by_name()` instead")]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI: This example is now available in DriverManager.

@@ -2,6 +2,7 @@
#![crate_type = "lib"]
// Enable `doc_cfg` features when `docsrs` is defined by docs.rs config
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(test(attr(deny(warnings), allow(dead_code, unused_variables))))]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was stolen from tokio-rs.

@metasim
Copy link
Contributor Author

metasim commented Nov 7, 2022

bors r+

@bors bors bot merged commit d659402 into georust:master Nov 7, 2022
@metasim metasim deleted the feature/doctest-nowarn branch November 13, 2022 21:38
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

2 participants