make Term::as_slice public (#1846)

This commit is contained in:
trinity-1686a
2023-02-09 15:37:07 +01:00
committed by GitHub
parent 3ac973bea4
commit 1390834ae8

View File

@@ -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()
}
}