Compare commits

...

1 Commits

Author SHA1 Message Date
trinity-1686a
116c6d3621 make Term::as_slice public 2023-02-09 13:43:01 +01:00

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