diff --git a/src/collections.rs b/src/collections/mod.rs similarity index 98% rename from src/collections.rs rename to src/collections/mod.rs index 2269f2ebd4..af88e75445 100644 --- a/src/collections.rs +++ b/src/collections/mod.rs @@ -1,5 +1,7 @@ use std::hash::BuildHasherDefault; +pub mod str; + pub use fxhash::FxHasher; #[inline(always)] diff --git a/src/collections/str.rs b/src/collections/str.rs new file mode 100644 index 0000000000..57542b099a --- /dev/null +++ b/src/collections/str.rs @@ -0,0 +1,7 @@ +pub struct Str(pub str); + +impl<'a> Into<&'a str> for &'a Str { + fn into(self) -> &'a str { + &self.0 + } +}