Skip to content

Commit e7a5dee

Browse files
committed
ga
1 parent c0b8e60 commit e7a5dee

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

crates/filament/src/ir_passes/assumptions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::ir_visitor::{Action, Visitor, VisitorData};
2-
use fil_ast::{self as ast, Instance};
3-
use fil_ir::{self as ir, AddCtx, Ctx, DisplayCtx, Foldable, PropIdx};
2+
use fil_ir::{self as ir, AddCtx, Ctx, DisplayCtx, Foldable};
43
use fil_utils::GPosIdx;
54
use itertools::Itertools;
65

crates/filament/src/ir_passes/mono/monosig.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,8 @@ impl MonoSig {
266266
let ir::CmpOp { op, lhs, rhs } = cmp;
267267
let lhs = self.expr(underlying, lhs.ul(), pass).get();
268268
let rhs = self.expr(underlying, rhs.ul(), pass).get();
269-
self.base.add(ir::Prop::Cmp(ir::CmpOp {
270-
op: op.clone(),
271-
lhs,
272-
rhs,
273-
}))
269+
self.base
270+
.add(ir::Prop::Cmp(ir::CmpOp { op: *op, lhs, rhs }))
274271
}
275272
ir::Prop::TimeCmp(tcmp) => {
276273
let ir::CmpOp { op, lhs, rhs } = tcmp;
@@ -279,7 +276,7 @@ impl MonoSig {
279276
let lhs = self.time(underlying, pass, lhs);
280277
let rhs = self.time(underlying, pass, rhs);
281278
self.base.add(ir::Prop::TimeCmp(ir::CmpOp {
282-
op: op.clone(),
279+
op: *op,
283280
lhs: lhs.get(),
284281
rhs: rhs.get(),
285282
}))
@@ -289,7 +286,7 @@ impl MonoSig {
289286
let lhs = self.timesub(underlying, pass, lhs);
290287
let rhs = self.timesub(underlying, pass, rhs);
291288
self.base.add(ir::Prop::TimeSubCmp(ir::CmpOp {
292-
op: op.clone(),
289+
op: *op,
293290
lhs,
294291
rhs,
295292
}))

crates/ir/src/from_ast/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use fil_ast::{self as ast};
1111
use fil_utils::{Diagnostics, Error, GPosIdx};
1212
use itertools::Itertools;
1313
use std::collections::HashMap;
14-
use std::{iter, rc::Rc};
14+
use std::rc::Rc;
1515

1616
pub type BuildRes<T> = Result<T, Diagnostics>;
1717

0 commit comments

Comments
 (0)