Skip to content

Commit acd45b2

Browse files
committed
fixed build errors
1 parent c75494e commit acd45b2

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

crates/dfg_passes/src/builder.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ impl DfgBuilder {
5858
}
5959
}
6060

61+
impl Default for DfgBuilder {
62+
fn default() -> Self {
63+
Self::new()
64+
}
65+
}
66+
6167
macro_rules! dfg_index_impl {
6268
($field:ident, $idx:ty, $out:ty) => {
6369
impl Index<$idx> for DfgBuilder {

crates/dfg_passes/src/dfg_passes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub fn pass(dfg: &mut Dfg) -> Result<(), &'static str> {
1717
fn parse_operator(op: ArithOp) {
1818
match op {
1919
ArithOp::Sin => {}
20-
_ => return,
20+
ArithOp::Cos => {}
21+
_ => (),
2122
}
2223
}

0 commit comments

Comments
 (0)