Require documentation on filecheck public items.

This commit is contained in:
Jakob Stoklund Olesen
2016-10-26 17:34:45 -07:00
parent 15f626ccc0
commit 447baf015e
2 changed files with 4 additions and 0 deletions

View File

@@ -234,6 +234,8 @@
//! This will match `"one, two"` , but not `"one,two"`. Without the `$()`, trailing whitespace
//! would be trimmed from the pattern.
#![deny(missing_docs)]
pub use error::{Error, Result};
pub use variable::{VariableMap, Value, NO_VARIABLES};
pub use checker::{Checker, CheckerBuilder};

View File

@@ -19,7 +19,9 @@ pub fn varname_prefix(s: &str) -> usize {
/// A variable can contain either a regular expression or plain text.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Value<'a> {
/// Verbatim text.
Text(Cow<'a, str>),
/// Regular expression.
Regex(Cow<'a, str>),
}