From a64eb0a5bc750bd08afce96f131cebb5858d80da Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Sat, 31 Aug 2024 10:31:45 -0700 Subject: [PATCH] fix: lint error --- src/common/function/src/scalars/geo/geohash.rs | 2 +- src/common/function/src/scalars/geo/h3.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/function/src/scalars/geo/geohash.rs b/src/common/function/src/scalars/geo/geohash.rs index b61ed536c2..fb39b46634 100644 --- a/src/common/function/src/scalars/geo/geohash.rs +++ b/src/common/function/src/scalars/geo/geohash.rs @@ -90,7 +90,7 @@ impl Function for GeohashFunction { let encoded = geohash::encode(coord, r as usize) .map_err(|e| { BoxedError::new(PlainError::new( - format!("Geohash error: {}", e.to_string()), + format!("Geohash error: {}", e), StatusCode::EngineExecuteQuery, )) }) diff --git a/src/common/function/src/scalars/geo/h3.rs b/src/common/function/src/scalars/geo/h3.rs index aa918e0723..7b58150079 100644 --- a/src/common/function/src/scalars/geo/h3.rs +++ b/src/common/function/src/scalars/geo/h3.rs @@ -89,7 +89,7 @@ impl Function for H3Function { let coord = LatLng::new(lat, lon) .map_err(|e| { BoxedError::new(PlainError::new( - format!("H3 error: {}", e.to_string()), + format!("H3 error: {}", e), StatusCode::EngineExecuteQuery, )) }) @@ -97,7 +97,7 @@ impl Function for H3Function { let r = Resolution::try_from(r as u8) .map_err(|e| { BoxedError::new(PlainError::new( - format!("H3 error: {}", e.to_string()), + format!("H3 error: {}", e), StatusCode::EngineExecuteQuery, )) })