Commit 06437007 authored by Andrey Davydov's avatar Andrey Davydov Committed by Andrey Davydov

missing 'Result -> Option' conversion added

parent 75293105
......@@ -478,8 +478,8 @@ impl RocksDBVector {
self.inner.as_slice()
}
pub fn to_utf8<'a>(&'a self) -> Option<&'a str> {
from_utf8(self.inner.as_slice())
pub fn to_utf8(&self) -> Option<&str> {
from_utf8(self.inner.as_slice()).ok()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment