From 3983c73df67dad51d3c6fc03b2ea8d16237dfc62 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Tue, 1 Oct 2024 01:22:51 +0800 Subject: [PATCH] chore(clippy): allow needless_return --- .github/workflows/ci.yml | 2 +- Cargo.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99e1722..22ca253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ env: CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true RUST_BACKTRACE: 1 RUSTUP_MAX_RETRIES: 10 - RUSTFLAGS: -D warnings + RUSTFLAGS: -D warnings -A clippy::needless_return RUSTDOCFLAGS: -D warnings jobs: diff --git a/Cargo.toml b/Cargo.toml index 1ec6b93..df4b61e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -163,7 +163,6 @@ module_name_repetitions = { level = "allow", priority = 1 } too_many_lines = { level = "allow", priority = 1 } type_complexity = { level = "allow", priority = 1 } lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12270 -needless_return = { level = "allow", priority = 1 } [workspace.lints.rustdoc] private_intra_doc_links = 'allow'