From ae8fb8ee14ef3111903a799d8be68019df6ee9a1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 2 Jul 2023 17:25:10 +0200 Subject: [PATCH] core compatibility fix --- src/cfdp/lv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfdp/lv.rs b/src/cfdp/lv.rs index cf6f209..96f932d 100644 --- a/src/cfdp/lv.rs +++ b/src/cfdp/lv.rs @@ -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> { 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