diff --git a/src/collections/string_pool.rs b/src/collections/string_pool.rs index 2b9f7856adfdc27897aa5027b8f5bbb8d55d1255..9d9996821f2ac58195c24b66cccccb664328fa42 100644 --- a/src/collections/string_pool.rs +++ b/src/collections/string_pool.rs @@ -107,9 +107,8 @@ impl StringPool { /// reallocate/deallocate until dropped (which only happens at the end of /// the program.) pub(crate) fn intern(&mut self, data: &[u8]) -> StringRef<'static> { - // TODO: Large string allocations, if ever needed. let data_len = data.len(); - assert!(data_len <= SLAB_SIZE, "string is too large for slab"); + assert!(data_len <= SLAB_SIZE, "string is too large for slab"); // if you hit this, create logic for large-string allocations debug_assert!(std::str::from_utf8(data).is_ok(), "string to intern is not valid UTF-8 encoded"); let mut last = unsafe{&mut *self.last};