From 1390834ae8ab413f5b2359bcafd9492f24fcc2f0 Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Thu, 9 Feb 2023 15:37:07 +0100 Subject: [PATCH] make Term::as_slice public (#1846) --- src/schema/term.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema/term.rs b/src/schema/term.rs index 34850c93d..689000d01 100644 --- a/src/schema/term.rs +++ b/src/schema/term.rs @@ -375,7 +375,7 @@ where B: AsRef<[u8]> /// /// Do NOT rely on this byte representation in the index. /// This value is likely to change in the future. - pub(crate) fn as_slice(&self) -> &[u8] { + pub fn as_slice(&self) -> &[u8] { self.0.as_ref() } }