Skip to content

Commit

Permalink
Upgrade ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Nov 3, 2023
1 parent af9c00a commit c336ffd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
profile = default
version = 0.26.0
version = 0.26.1
6 changes: 2 additions & 4 deletions src/cue.ml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ let rec push t new_node old_tail =
fix_tail t.tail new_node;
release_all t.tail_waiters))

let push t value =
let[@inline] push t value =
let new_node = Node { _next = Null; value; capacity = 0; counter = 0 } in
push t new_node (Atomic.get t.tail)
[@@inline]

(* *)

Expand All @@ -238,7 +237,6 @@ let rec try_push t new_node old_tail =
release_all t.tail_waiters;
true))

let try_push t value =
let[@inline] try_push t value =
let new_node = Node { _next = Null; value; capacity = 0; counter = 0 } in
try_push t new_node (Atomic.get t.tail)
[@@inline]

0 comments on commit c336ffd

Please sign in to comment.