about summary refs log tree commit diff
path: root/src/libcore/str/mod.rs
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2015-03-23 14:21:42 +0100
committerMarvin Löbel <loebel.marvin@gmail.com>2015-04-05 18:52:57 +0200
commitc04f22a667123b39f16452af6fa65c82b2f8c0a2 (patch)
tree6ccef6b45238353636227401ba0aeebb866bc8a7 /src/libcore/str/mod.rs
parent91d1aa71f6c4317d91bc04a53213b04f13b09c44 (diff)
downloadrust-c04f22a667123b39f16452af6fa65c82b2f8c0a2.tar.gz
rust-c04f22a667123b39f16452af6fa65c82b2f8c0a2.zip
Refactored core::str::pattern to become a user-facing module and hide away
CharEq.
Diffstat (limited to 'src/libcore/str/mod.rs')
-rw-r--r--src/libcore/str/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index d31c1e27466..107a3376277 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -17,6 +17,8 @@
 #![doc(primitive = "str")]
 
 use self::OldSearcher::{TwoWay, TwoWayLong};
+use self::pattern::Pattern;
+use self::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
 
 use char::CharExt;
 use clone::Clone;
@@ -34,10 +36,7 @@ use result::Result::{self, Ok, Err};
 use slice::{self, SliceExt};
 use usize;
 
-pub use self::pattern::Pattern;
-pub use self::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher, SearchStep};
-
-mod pattern;
+pub mod pattern;
 
 /// A trait to abstract the idea of creating a new instance of a type from a
 /// string.