diff options
Diffstat (limited to 'lib/kernel/EphemeralRelation.ml')
| -rw-r--r-- | lib/kernel/EphemeralRelation.ml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/kernel/EphemeralRelation.ml b/lib/kernel/EphemeralRelation.ml index ff7bce1..7f1e79c 100644 --- a/lib/kernel/EphemeralRelation.ml +++ b/lib/kernel/EphemeralRelation.ml @@ -87,9 +87,7 @@ class ephemeral_relation ?code description value enumerate inputs = method contains (tuple : Concepts.Tuple.t) = let open Utilities.Result in let* cursor = self#enumerate in - Fun.protect - ~finally:(fun () -> Protocols.Handle.release cursor) - (fun () -> + Protocols.Handle.releasing cursor (fun () -> let* scan = Protocols.Cursor.require cursor in Protocols.Cursor.exists scan (fun member -> Concepts.Hash.hash_equals (Concepts.Tuple.hash member) (Concepts.Tuple.hash tuple) ) ) |
