From 8c90b5fed42c9b14329b44f7f75b74e019f997b8 Mon Sep 17 00:00:00 2001 From: Elliana May Date: Mon, 15 Apr 2024 00:41:41 +0800 Subject: [PATCH] apply clippy suggestions --- src/config.rs | 2 +- src/vtab/arrow.rs | 1 - src/vtab/logical_type.rs | 4 ++-- src/vtab/mod.rs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config.rs b/src/config.rs index 7c5a3b95..66e37c4b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -41,7 +41,7 @@ pub enum DefaultNullOrder { } /// duckdb configuration -/// Refer to https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp +/// Refer to #[derive(Default)] pub struct Config { config: Option, diff --git a/src/vtab/arrow.rs b/src/vtab/arrow.rs index 20082534..e0c7a137 100644 --- a/src/vtab/arrow.rs +++ b/src/vtab/arrow.rs @@ -208,7 +208,6 @@ pub fn to_duckdb_logical_type(data_type: &DataType) -> Result #[repr(u32)] #[derive(Debug, PartialEq, Eq)] pub enum LogicalTypeId { @@ -109,7 +109,7 @@ impl From for LogicalTypeId { } /// DuckDB Logical Type. -/// https://duckdb.org/docs/sql/data_types/overview +/// pub struct LogicalType { pub(crate) ptr: duckdb_logical_type, } diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 4a634fec..40717819 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -59,7 +59,7 @@ pub trait Free { /// Duckdb table function trait /// /// See to the HelloVTab example for more details -/// https://duckdb.org/docs/api/c/table_functions +/// pub trait VTab: Sized { /// The data type of the bind data type InitData: Sized + Free;