lint: clippy

This commit is contained in:
Roman Godmaire 2024-02-16 07:32:25 -05:00
parent 75591cac9a
commit bd12bd998b
2 changed files with 2 additions and 2 deletions

View file

@ -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)))

View file

@ -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();