lint: clippy
This commit is contained in:
parent
75591cac9a
commit
bd12bd998b
2 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ pub fn core_environment() -> Rc<Environment> {
|
|||
// We turn the keys into strings because they're hashable
|
||||
// This feels so hacky, but ¯\_(ツ)_/¯
|
||||
.map(|key| key.to_string())
|
||||
.zip(values.into_iter())
|
||||
.zip(values)
|
||||
.collect();
|
||||
|
||||
Ok(Rc::new(Expression::HashMap(res)))
|
||||
|
|
|
@ -52,7 +52,7 @@ impl std::fmt::Display for Expression {
|
|||
}
|
||||
Expression::HashMap(map) => {
|
||||
let res = map
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|(k, v)| format!("{k}: {v}"))
|
||||
.reduce(|lhs, rhs| format!("{lhs}, {rhs}"))
|
||||
.unwrap_or_default();
|
||||
|
|
Loading…
Reference in a new issue