Fix a couple of feature flag uses
Wrap a json doc-test in cfg block to stop in failing when tests are run with --no-default-features
This commit is contained in:
committed by
Martin Algesten
parent
71a9df17e3
commit
b61991d87e
@@ -8,6 +8,7 @@
|
||||
//!
|
||||
//! ```
|
||||
//! // requires feature: `ureq = { version = "*", features = ["json"] }`
|
||||
//! # #[cfg(feature = "json")] {
|
||||
//! use ureq::json;
|
||||
//!
|
||||
//! // sync post request of some json.
|
||||
@@ -22,6 +23,7 @@
|
||||
//! if resp.ok() {
|
||||
//! // ....
|
||||
//! }
|
||||
//! # }
|
||||
//! ```
|
||||
//!
|
||||
//! # Plain requests
|
||||
|
||||
Reference in New Issue
Block a user