1 2 3 4 5 6
use anyhow::Result; use bytes::Bytes; pub(crate) fn bytes_to_utf8(bytes: &Bytes) -> Result<&str> { Ok(std::str::from_utf8(bytes)?) }