Skip to content

Commit

Permalink
refactor: fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Oct 1, 2024
1 parent 33aa437 commit a286993
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/common/function/src/scalars/geo/h3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ use snafu::{ensure, ResultExt};

use crate::function::{Function, FunctionContext};

const CELL_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
static CELL_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
vec![
ConcreteDataType::int64_datatype(),
ConcreteDataType::uint64_datatype(),
]
});

const COORDINATE_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
static COORDINATE_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
vec![
ConcreteDataType::float32_datatype(),
ConcreteDataType::float64_datatype(),
]
});
const RESOLUTION_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
static RESOLUTION_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
vec![
ConcreteDataType::int8_datatype(),
ConcreteDataType::int16_datatype(),
Expand All @@ -58,7 +58,7 @@ const RESOLUTION_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
ConcreteDataType::uint64_datatype(),
]
});
const DISTANCE_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
static DISTANCE_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
vec![
ConcreteDataType::int8_datatype(),
ConcreteDataType::int16_datatype(),
Expand All @@ -71,7 +71,7 @@ const DISTANCE_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
]
});

const POSITION_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
static POSITION_TYPES: Lazy<Vec<ConcreteDataType>> = Lazy::new(|| {
vec![
ConcreteDataType::int8_datatype(),
ConcreteDataType::int16_datatype(),
Expand Down

0 comments on commit a286993

Please sign in to comment.