fix: lint error

This commit is contained in:
Ning Sun
2024-08-31 10:31:45 -07:00
parent 2e4ab6dd91
commit a64eb0a5bc
2 changed files with 3 additions and 3 deletions

View File

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

View File

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