rustfmt
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
ecbc47d4fe
commit
bc09cb07b1
17 changed files with 236 additions and 217 deletions
|
|
@ -151,7 +151,7 @@ fn process(document: &String) -> Result<Box<Seg>, String> {
|
|||
return Err("Empty token".to_string());
|
||||
}
|
||||
|
||||
let mut current_seg = ref_stack.pop().unwrap();
|
||||
let mut current_seg = ref_stack.pop().unwrap_or(Seg::new());
|
||||
let obj;
|
||||
if is_str {
|
||||
obj = Box::from(Ctr::String(token));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue