Skip to content

Commit

Permalink
disable clippy lints in generated code without touching cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Oct 9, 2024
1 parent a0f0ba1 commit 9d3bc32
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions vortex-datafusion/src/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ mod test {
use std::sync::Arc;

use arrow_schema::{DataType, Field, FieldRef, Fields, Schema};
use vortex_dtype::{
DType, FieldName, FieldNames, Nullability, PType, StructDType,
};
use vortex_dtype::{DType, FieldName, FieldNames, Nullability, PType, StructDType};

use super::*;

Expand Down
4 changes: 2 additions & 2 deletions vortex-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ dtype = []
scalar = ["dtype"]
expr = ["dtype", "scalar"]

#[lints]
#workspace = true
[lints]
workspace = true
5 changes: 1 addition & 4 deletions vortex-proto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
#![allow(clippy::all)]
#![allow(clippy::all, clippy::nursery)]

#[cfg(feature = "dtype")]
#[allow(clippy::all)]
#[rustfmt::skip]
#[path = "./generated/vortex.dtype.rs"]
pub mod dtype;

#[cfg(feature = "scalar")]
#[allow(clippy::all)]
#[rustfmt::skip]
#[path = "./generated/vortex.scalar.rs"]
pub mod scalar;

#[cfg(feature = "expr")]
#[allow(clippy::all)]
#[rustfmt::skip]
#[path = "./generated/vortex.expr.rs"]
pub mod expr;
1 change: 0 additions & 1 deletion vortex-scalar/src/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl<'a> TryFrom<&'a Scalar> for ExtScalar<'a> {

impl Scalar {
pub fn extension(ext_dtype: ExtDType, value: ScalarValue) -> Self {
// Ensure that the ext_dtype is compatible with our scalar value type instead.
Self {
dtype: DType::Extension(ext_dtype),
value,
Expand Down

0 comments on commit 9d3bc32

Please sign in to comment.