Skip to content

Commit b162f75

Browse files
committed
feat: use safer lock syntax
1 parent 5ce69c5 commit b162f75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OperatorEnumConstruction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function _extend_operators(operators, skip_user_operators, kws, __module__::Modu
295295
return quote
296296
local $type_requirements, $build_converters, $binary_exists, $unary_exists
297297
$(_validate_no_ambiguous_broadcasts)($operators)
298-
lock($LATEST_LOCK)
298+
lock($LATEST_LOCK) do
299299
if isa($operators, $OperatorEnum)
300300
$type_requirements = $(on_type == nothing ? Number : on_type)
301301
$build_converters = $(on_type == nothing)
@@ -360,7 +360,7 @@ function _extend_operators(operators, skip_user_operators, kws, __module__::Modu
360360
$(binary_exists)[func] = true
361361
end
362362
end
363-
unlock($LATEST_LOCK)
363+
end
364364
end
365365
#! format: on
366366
end

0 commit comments

Comments
 (0)