Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Feb 3, 2025
1 parent a9b6ba1 commit df21ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dag_in_context/src/add_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ impl Expr {
body.add_ctx_with_cache(current_ctx, cache),
)),
Expr::Symbolic(s, ty) => RcExpr::new(Expr::Symbolic(s.clone(), ty.clone())),
Expr::DeadCode(subexpr) => {
RcExpr::new(Expr::DeadCode(subexpr.add_ctx_with_cache(current_ctx, cache)))
}
Expr::DeadCode(subexpr) => RcExpr::new(Expr::DeadCode(
subexpr.add_ctx_with_cache(current_ctx, cache),
)),
};
cache
.with_ctx
Expand Down
2 changes: 1 addition & 1 deletion dag_in_context/src/linearity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl<'a> Extractor<'a> {
let get_if_effectful = |this: &mut Extractor<'a>, expr: *const Expr| {
let rcexpr = raw_to_rc.get(&expr).unwrap();
if let Expr::Function(_name, _inp, _out, body) = rcexpr.as_ref() {
if this.is_effectful(&body) {
if this.is_effectful(body) {
return Some(rcexpr);
}
} else if this.is_effectful(rcexpr) {
Expand Down

0 comments on commit df21ada

Please sign in to comment.