clippy fix
This commit is contained in:
parent
a2cca95dbd
commit
83540e898a
|
@ -140,8 +140,8 @@ fn lower_comb(
|
||||||
.expect("signal has no size"),
|
.expect("signal has no size"),
|
||||||
Some(rtlil::PortOption::Output(block.signals.len() as i32)),
|
Some(rtlil::PortOption::Output(block.signals.len() as i32)),
|
||||||
));
|
));
|
||||||
for (_, expr) in &block.exprs {
|
for expr in block.exprs.values() {
|
||||||
let expr_wire = lower_expression(ctx, module, block, &expr)?;
|
let expr_wire = lower_expression(ctx, module, block, expr)?;
|
||||||
module.add_connection(&wire_for_expr(expr.id), &expr_wire);
|
module.add_connection(&wire_for_expr(expr.id), &expr_wire);
|
||||||
}
|
}
|
||||||
let out_sig = wire_for_expr(block.expr);
|
let out_sig = wire_for_expr(block.expr);
|
||||||
|
|
|
@ -41,8 +41,8 @@ impl Context {
|
||||||
self.types.pretty_type(&mut typ_pretty, sig.typ)?;
|
self.types.pretty_type(&mut typ_pretty, sig.typ)?;
|
||||||
writeln!(w, "sig_{}: {}", sig.id.0, typ_pretty)?
|
writeln!(w, "sig_{}: {}", sig.id.0, typ_pretty)?
|
||||||
}
|
}
|
||||||
for (_, expr) in &body.exprs {
|
for expr in body.exprs.values() {
|
||||||
self.pretty_typed_expr(w, &expr)?;
|
self.pretty_typed_expr(w, expr)?;
|
||||||
}
|
}
|
||||||
writeln!(w, "return _{}", body.expr.0)?;
|
writeln!(w, "return _{}", body.expr.0)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue