Skip to content
Snippets Groups Projects
Commit 272a9676 authored by stratact's avatar stratact
Browse files

Remove unneeded trim. Terminator handles this

parent 6526fff9
No related branches found
No related tags found
No related merge requests found
......@@ -30,12 +30,12 @@ impl Primitive {
_ => {
let open_bracket = data.find('[')?;
let close_bracket = data.rfind(']')?;
let kind = &data[..open_bracket].trim_start();
let kind = &data[..open_bracket];
let inner = &data[open_bracket + 1..close_bracket];
if *kind == "hmap" {
if kind == "hmap" {
Some(Primitive::HashMap(Box::new(Primitive::parse(inner)?)))
} else if *kind == "bmap" {
} else if kind == "bmap" {
Some(Primitive::BTreeMap(Box::new(Primitive::parse(inner)?)))
} else {
None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment