working on key

This commit is contained in:
open-trade committed 2020-07-09 00:56:30 +08:00
1 parent 135d855505
commit d837379a13
4 files changed
+307 -176

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ impl SledAsync {
}
#[inline]
pub fn _deserialize<'a, T: serde::Deserialize<'a>>(v: &'a Option<sled::IVec>) -> Option<T> {
pub fn deserialize<'a, T: serde::Deserialize<'a>>(v: &'a Option<sled::IVec>) -> Option<T> {
if let Some(v) = v {
if let Ok(v) = std::str::from_utf8(v) {
if let Ok(v) = serde_json::from_str::<T>(&v) {