Skip to content

Commit 4737f0a

Browse files
committed
beg for clippy's forgiveness
1 parent ed840be commit 4737f0a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/execute/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ fn detect_geometry_column(schema: &Schema) -> Option<String> {
251251
use arrow::datatypes::DataType;
252252

253253
fn looks_like_geometry(name: &str) -> bool {
254-
match name.to_lowercase().as_str() {
255-
"geom" | "geometry" | "wkb_geometry" | "the_geom" | "shape" => true,
256-
_ => false,
257-
}
254+
matches!(
255+
name.to_lowercase().as_str(),
256+
"geom" | "geometry" | "wkb_geometry" | "the_geom" | "shape"
257+
)
258258
}
259259

260260
fn is_geometry_type(dtype: &DataType) -> bool {

0 commit comments

Comments
 (0)