Skip to content

Commit 043fb66

Browse files
committed
change struct description to pred.normalize() for consistency
Add Cfg feature to NormalizedPredicate in adapter.rs
1 parent 73acc29 commit 043fb66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/str/adapters.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use std::fmt;
1111
use std::str;
1212

1313
use Predicate;
14+
#[cfg(feature = "normalize-line-endings")]
1415
use str::normalize::NormalizedPredicate;
1516

1617
/// Predicate adaper that trims the variable being tested.

src/str/normalize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::iter::FromIterator;
1515
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
1616
/// Predicate adapter that normalizes the newlines contained in the variable being tested.
1717
///
18-
/// This is created by `pred.normalized()`.
18+
/// This is created by `pred.normalize()`.
1919
pub struct NormalizedPredicate<P>
2020
where
2121
P: Predicate<str>,

0 commit comments

Comments
 (0)