Refactored core::str::pattern to become a user-facing module and hide away

CharEq.
This commit is contained in:
Marvin Löbel
2015-03-23 14:21:42 +01:00
parent 91d1aa71f6
commit c04f22a667
5 changed files with 25 additions and 20 deletions

View File

@@ -185,14 +185,14 @@ fn trim_ws() {
}
mod pattern {
use std::str::Pattern;
use std::str::{Searcher, ReverseSearcher};
use std::str::SearchStep::{self, Match, Reject, Done};
use std::str::pattern::Pattern;
use std::str::pattern::{Searcher, ReverseSearcher};
use std::str::pattern::SearchStep::{self, Match, Reject, Done};
macro_rules! make_test {
($name:ident, $p:expr, $h:expr, [$($e:expr,)*]) => {
mod $name {
use std::str::SearchStep::{Match, Reject};
use std::str::pattern::SearchStep::{Match, Reject};
use super::{cmp_search_to_vec};
#[test]
fn fwd() {