Unwraps
This commit is contained in:
parent
502497687a
commit
2ee14bf740
@ -107,11 +107,11 @@ impl Sexp {
|
|||||||
&NumberAtom(ref n) => format!("{}", n),
|
&NumberAtom(ref n) => format!("{}", n),
|
||||||
&List(ref sexprs) => {
|
&List(ref sexprs) => {
|
||||||
let mut output = String::new();
|
let mut output = String::new();
|
||||||
write!(&mut output, "(");
|
write!(&mut output, "(").unwrap();
|
||||||
for sexpr in sexprs.iter() {
|
for sexpr in sexprs.iter() {
|
||||||
write!(&mut output, "{}", sexpr.print());
|
write!(&mut output, "{}", sexpr.print()).unwrap();
|
||||||
}
|
}
|
||||||
write!(&mut output, ")");
|
write!(&mut output, ")").unwrap();
|
||||||
output
|
output
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user