From 07d16858e2b87f06446accf81f17ad0b2b2b7084 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 2 Feb 2024 16:05:54 +0800 Subject: [PATCH] remove `RwError` from disallowed list Signed-off-by: Bugen Zhao --- src/batch/clippy.toml | 11 +++-------- src/stream/clippy.toml | 6 +----- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/batch/clippy.toml b/src/batch/clippy.toml index aeb91fb713fb1..df03c275d0dee 100644 --- a/src/batch/clippy.toml +++ b/src/batch/clippy.toml @@ -1,11 +1,6 @@ -disallowed-methods = [ -] +disallowed-methods = [] -disallowed-types = [ - { path = "risingwave_common::error::ErrorCode", reason = "Please use per-crate error type instead." }, - { path = "risingwave_common::error::RwError", reason = "Please use per-crate error type instead." }, - { path = "risingwave_common::error::Result", reason = "Please use per-crate error type instead." }, -] +disallowed-types = [] doc-valid-idents = [ "RisingWave", @@ -16,7 +11,7 @@ doc-valid-idents = [ "PostgreSQL", "MySQL", "TopN", - "VNode" + "VNode", ] avoid-breaking-exported-api = false upper-case-acronyms-aggressive = true diff --git a/src/stream/clippy.toml b/src/stream/clippy.toml index dd26a976e1ab1..9d73b2ba754ed 100644 --- a/src/stream/clippy.toml +++ b/src/stream/clippy.toml @@ -7,11 +7,7 @@ disallowed-methods = [ { path = "risingwave_expr::expr::Expression::eval_row", reason = "Please use `NonStrictExpression::eval_row_infallible` instead." }, ] -disallowed-types = [ - { path = "risingwave_common::error::ErrorCode", reason = "Please use per-crate error type instead." }, - { path = "risingwave_common::error::RwError", reason = "Please use per-crate error type instead." }, - { path = "risingwave_common::error::Result", reason = "Please use per-crate error type instead." }, -] +disallowed-types = [] doc-valid-idents = [ "RisingWave",