Formatting.
This commit is contained in:
@@ -67,18 +67,17 @@ impl Arbitrary for Program {
|
||||
defined_variables.insert(psi.name.name.clone(), psi.binding_type);
|
||||
statements.push(
|
||||
expr.prop_map(move |expr| {
|
||||
Statement::Binding(
|
||||
Location::manufactured(),
|
||||
psi.name.clone(),
|
||||
expr,
|
||||
)
|
||||
Statement::Binding(Location::manufactured(), psi.name.clone(), expr)
|
||||
})
|
||||
.boxed(),
|
||||
);
|
||||
} else {
|
||||
let printers = defined_variables
|
||||
.keys()
|
||||
.map(|n| Just(Statement::Print(Location::manufactured(), Name::manufactured(n))));
|
||||
let printers = defined_variables.keys().map(|n| {
|
||||
Just(Statement::Print(
|
||||
Location::manufactured(),
|
||||
Name::manufactured(n),
|
||||
))
|
||||
});
|
||||
statements.push(Union::new(printers).boxed());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user