From 89eeb2a1d4ce3b89c43989c660438dfe1ef73732 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Sat, 23 Nov 2024 09:22:41 +0100 Subject: [PATCH] less lines --- base/irrationals.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/base/irrationals.jl b/base/irrationals.jl index 963b480fbf9afa..fc7d6eca732eb5 100644 --- a/base/irrationals.jl +++ b/base/irrationals.jl @@ -89,9 +89,7 @@ function _irrational_to_rational_at_current_rounding_mode(::Type{T}, x::Abstract p += 32 end end -function _irrational_to_rational( - ::Type{T}, x::AbstractIrrational, -) where {T <: Integer} +function _irrational_to_rational(::Type{T}, x::AbstractIrrational) where {T <: Integer} f = let x = x () -> _irrational_to_rational_at_current_rounding_mode(T, x) end