core compatibility fix
This commit is contained in:
parent
188651c4a4
commit
ae8fb8ee14
@ -100,7 +100,7 @@ impl<'data> Lv<'data> {
|
||||
/// known to contain a [str], for example being a file name.
|
||||
pub fn value_as_str(&self) -> Option<Result<&'data str, Utf8Error>> {
|
||||
self.data?;
|
||||
Some(std::str::from_utf8(self.data.unwrap()))
|
||||
Some(core::str::from_utf8(self.data.unwrap()))
|
||||
}
|
||||
|
||||
/// Writes the LV to a raw buffer. Please note that the first byte will contain the length
|
||||
|
Loading…
Reference in New Issue
Block a user