From 1632be37af3e3e6a402128f5070eecb27531d43c Mon Sep 17 00:00:00 2001 From: Ben Breslauer Date: Tue, 6 Oct 2026 14:15:08 -0700 Subject: [PATCH] Use the standard library's version of the Euler-Mascheroni constant This fixes a lint error that just started showing up. --- crates/geo_filters/src/diff_count/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/geo_filters/src/diff_count/config.rs b/crates/geo_filters/src/diff_count/config.rs index b87e369..c7505cf 100644 --- a/crates/geo_filters/src/diff_count/config.rs +++ b/crates/geo_filters/src/diff_count/config.rs @@ -104,7 +104,7 @@ fn expected_diff_buckets_fast(phi: f64, items: f64) -> (f64, f64) { } /// Euler–Mascheroni constant. -const GAMMA: f64 = 0.577_215_664_901_532_9; +const GAMMA: f64 = std::f64::consts::EULER_GAMMA; /// `e^gamma`, precomputed. const E_GAMMA: f64 = 1.781_072_417_990_198;