Update version, remove unused features
This commit is contained in:
1 parent
96a58c61bc
commit
1d4b37e381
5 files changed
+36
-36
No files matched your search
@@ -69,26 +69,6 @@ fn additional_to_string(map: &LiteMap<Id, String>) -> String {
|
||||
parts.join("")
|
||||
}
|
||||
|
||||
fn additional_from_string_temp(data: String) -> LiteMap<Id, String> {
|
||||
let pre_map: LiteMap<String, String> = serde_json::from_str(data.as_str()).unwrap();
|
||||
LiteMap::from(
|
||||
pre_map
|
||||
.iter()
|
||||
.map(|(k, v)| {
|
||||
(
|
||||
match k.as_str() {
|
||||
"reading" => Id(1),
|
||||
"description" => Id(2),
|
||||
"context" => Id(3),
|
||||
&_ => Id(0),
|
||||
},
|
||||
v.to_string(),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
)
|
||||
}
|
||||
|
||||
fn additional_from_string(data: String) -> LiteMap<Id, String> {
|
||||
if data.is_empty() {
|
||||
return LiteMap::new();
|
||||
|
||||
Reference in new issue
Block a user