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(())