Skip to content

Commit

Permalink
fixed nightly-only attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasfe committed Jun 21, 2020
1 parent 112c192 commit 61949be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions verify/src/impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Implementations for [Schemars](https://docs.rs/schemars) Schema types.
#[cfg(feature = "schemars")]
#[doc(cfg(feature = "schemars"))]
pub mod schemars;
#[cfg_attr(feature = "docs", doc(cfg(feature = "schemars")))]
pub mod schemars;
3 changes: 1 addition & 2 deletions verify/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ assert!(example.verify().is_ok());
pub mod span;

#[cfg(feature = "serde")]
#[doc(cfg(feature = "serde"))]
#[cfg_attr(feature = "docs", doc(cfg(feature = "serde")))]
pub mod serde;

// Optional implementations for various crates.
Expand Down Expand Up @@ -177,7 +177,6 @@ impl<T: Error> ErrorExt for Option<T> {
}
}


/// Validate is implemented by values that can be validate themselves
/// against a given validator.
pub trait Validate: span::Spanned {
Expand Down

0 comments on commit 61949be

Please sign in to comment.