From bce2ff336dc384eded2a2937bc79602d9c3596ce Mon Sep 17 00:00:00 2001 From: Tom Brewe Date: Mon, 24 Feb 2025 15:55:26 +0100 Subject: [PATCH] fix: make base64 concurrency safe when changing the Swift version 5->6 in package.swift, by converting the variable to a `let`. --- Sources/Geohash/Geohash.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Geohash/Geohash.swift b/Sources/Geohash/Geohash.swift index b8505dd..adc4b9f 100644 --- a/Sources/Geohash/Geohash.swift +++ b/Sources/Geohash/Geohash.swift @@ -144,7 +144,7 @@ public extension CLLocationCoordinate2D { #endif public extension Geohash { - private static var base32 = "0123456789bcdefghjkmnpqrstuvwxyz" + private static let base32 = "0123456789bcdefghjkmnpqrstuvwxyz" enum Direction: String { case n, e, s, w