From 174ac1724236a688daa9e17daee8584294bc6fab Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Mon, 4 Mar 2024 13:46:27 +0000 Subject: [PATCH] Rustc warnings should be treated as errors --- Cargo.toml | 3 +++ vortex-fastlanes/src/for/serde.rs | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8e3d845db7..a9da41564d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,9 @@ include = [ edition = "2021" rust-version = "1.76" +[workspace.lints.rust] +warnings = "deny" + [workspace.lints.clippy] all = "deny" diff --git a/vortex-fastlanes/src/for/serde.rs b/vortex-fastlanes/src/for/serde.rs index d8c237b2b6..7cfd5c6f1f 100644 --- a/vortex-fastlanes/src/for/serde.rs +++ b/vortex-fastlanes/src/for/serde.rs @@ -36,15 +36,13 @@ impl EncodingSerde for FoREncoding { #[cfg(test)] mod test { + use crate::FoRArray; use std::io; - use vortex::array::primitive::PrimitiveArray; use vortex::array::{Array, ArrayRef}; use vortex::scalar::Scalar; use vortex::serde::{ReadCtx, WriteCtx}; - use super::*; - fn roundtrip_array(array: &dyn Array) -> io::Result { let mut buf = Vec::::new(); let mut write_ctx = WriteCtx::new(&mut buf);