From ad5bfa1a29d656d2530e24b38deff7544ca864b0 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Jun 2024 21:51:29 -0700 Subject: [PATCH] clippy (#2793) Signed-off-by: Jess Frazelle --- src/wasm-lib/kcl/src/settings/types/mod.rs | 2 +- src/wasm-lib/kcl/src/token.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wasm-lib/kcl/src/settings/types/mod.rs b/src/wasm-lib/kcl/src/settings/types/mod.rs index 3b3b1184da..31d2853828 100644 --- a/src/wasm-lib/kcl/src/settings/types/mod.rs +++ b/src/wasm-lib/kcl/src/settings/types/mod.rs @@ -408,7 +408,7 @@ impl From for DefaultTrue { #[derive( Debug, Default, Eq, PartialEq, Copy, Clone, Deserialize, Serialize, JsonSchema, ts_rs::TS, Display, FromStr, )] -#[cfg_attr(feature = "pyo3", pyo3::pyclass)] +#[cfg_attr(feature = "pyo3", pyo3::pyclass(eq, eq_int))] #[ts(export)] #[serde(rename_all = "lowercase")] #[display(style = "lowercase")] diff --git a/src/wasm-lib/kcl/src/token.rs b/src/wasm-lib/kcl/src/token.rs index 06a4a442bd..8fab3b2127 100644 --- a/src/wasm-lib/kcl/src/token.rs +++ b/src/wasm-lib/kcl/src/token.rs @@ -13,7 +13,7 @@ mod tokeniser; /// The types of tokens. #[derive(Debug, PartialEq, Eq, Copy, Clone, Deserialize, Serialize, ts_rs::TS, JsonSchema, FromStr, Display)] -#[cfg_attr(feature = "pyo3", pyo3::pyclass)] +#[cfg_attr(feature = "pyo3", pyo3::pyclass(eq, eq_int))] #[ts(export)] #[serde(rename_all = "camelCase")] #[display(style = "camelCase")]