From e471ea9f6a53e8c3cea30d5417fdb6c5ae91e69c Mon Sep 17 00:00:00 2001 From: Xiaoying Wang Date: Wed, 9 Oct 2024 11:21:39 -0700 Subject: [PATCH] fix warning --- connectorx-python/Cargo.toml | 3 +++ connectorx-python/src/pandas/pandas_columns/mod.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/connectorx-python/Cargo.toml b/connectorx-python/Cargo.toml index 498be1a5a..5e3194e5e 100644 --- a/connectorx-python/Cargo.toml +++ b/connectorx-python/Cargo.toml @@ -55,6 +55,9 @@ iai = "0.1" pprof = {version = "0.5", features = ["flamegraph", "criterion", "protobuf"]} rayon = "1" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(Py_3_12)'] } + [lib] crate-type = ["cdylib"] name = "connectorx" diff --git a/connectorx-python/src/pandas/pandas_columns/mod.rs b/connectorx-python/src/pandas/pandas_columns/mod.rs index 84cd0e0cc..fe3c3cf5c 100644 --- a/connectorx-python/src/pandas/pandas_columns/mod.rs +++ b/connectorx-python/src/pandas/pandas_columns/mod.rs @@ -26,7 +26,9 @@ lazy_static! { } pub trait PandasColumnObject: Send { + #[allow(dead_code)] fn typecheck(&self, _: TypeId) -> bool; + #[allow(dead_code)] fn typename(&self) -> &'static str; fn finalize(&mut self) -> Result<()> { Ok(())