Skip to content

Commit

Permalink
nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Feb 5, 2025
1 parent 87fe978 commit 58a6570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AstToMiniRust.ml
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ and translate_expr_with_type (env: env) (e: Ast.expr) (t_ret: MiniRust.typ): env
(* PrintMiniRust.ptyp t *)
(* PrintMiniRust.ptyp t_ret; *)
begin match x, t, t_ret with
| _, (App (Name (["Box"], _), [Slice _]) | MiniRust.Vec _ | Array _), Ref (_, k, Slice _) ->
| _, (MiniRust.App (Name (["Box"], _), [Slice _]) | MiniRust.Vec _ | Array _), Ref (_, k, Slice _) ->
Borrow (k, x)
| Constant (w, x), Constant UInt32, Constant SizeT ->
assert (w = Constant.UInt32);
Expand Down

0 comments on commit 58a6570

Please sign in to comment.