sasl: remove ignore
from scram-requiring doctest
We can make that conditional on the feature flag, thus always doing the right thing depending on how the sasl crate is being built.
This commit is contained in:
parent
a7fe743850
commit
8bc1f32218
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@
|
||||||
//!
|
//!
|
||||||
//! ## More complex usage
|
//! ## More complex usage
|
||||||
//!
|
//!
|
||||||
//! ```rust,ignore
|
#![cfg_attr(feature = "scram", doc = "```rust\n")]
|
||||||
|
#![cfg_attr(not(feature = "scram"), doc = "```rust,ignore\n")]
|
||||||
//! #[macro_use] extern crate sasl;
|
//! #[macro_use] extern crate sasl;
|
||||||
//!
|
//!
|
||||||
//! use sasl::server::{Validator, Provider, Mechanism as ServerMechanism, Response};
|
//! use sasl::server::{Validator, Provider, Mechanism as ServerMechanism, Response};
|
||||||
|
|
Loading…
Reference in a new issue