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, )) })