fix warnings
This commit is contained in:
parent
9680ba75a0
commit
b512d4ac97
1 changed files with 6 additions and 6 deletions
|
|
@ -276,25 +276,25 @@ impl std::fmt::Display for Expr {
|
|||
},
|
||||
Expr::Func(_) => string.push_str("<fn>"),
|
||||
Expr::Record(map) => {
|
||||
string.push_str("{");
|
||||
string.push('{');
|
||||
for (key, val) in map {
|
||||
string.push_str(&format!(" .{}: {},", key.0, val));
|
||||
}
|
||||
if map.len() > 0 {
|
||||
if !map.is_empty() {
|
||||
string.push_str(" }");
|
||||
} else {
|
||||
string.push_str("}");
|
||||
string.push('}');
|
||||
}
|
||||
}
|
||||
Expr::Vector(vec) => {
|
||||
string.push_str("[");
|
||||
string.push('[');
|
||||
for val in vec {
|
||||
string.push_str(&format!(" {},", val));
|
||||
}
|
||||
if vec.len() > 0 {
|
||||
if !vec.is_empty() {
|
||||
string.push_str(" ]");
|
||||
} else {
|
||||
string.push_str("]");
|
||||
string.push(']');
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue