From b47b61ea0885545d18057f99fcc9acf0be137e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Wed, 22 Oct 2025 20:05:00 +0200 Subject: [PATCH] Ignore noisy rule This lint will be triggered by a forthcoming change, see https://github.com/fish-shell/fish-shell/pull/11990#discussion_r2455299865 It bans the usage of ```rust fn hello() -> impl Debug { let useful_name = xxx; useful_name } ``` in favour of ```rust fn hello() -> impl Debug { xxx } ``` Which is less humanly-understandable. Part of #11990 --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index d3d19b68f..daf557dc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,6 +162,7 @@ rust.unknown_lints = "allow" rust.unstable_name_collisions = "allow" rustdoc.private_intra_doc_links = "allow" clippy.len_without_is_empty = "allow" # we're not a library crate +clippy.let_and_return = "allow" clippy.manual_range_contains = "allow" clippy.needless_lifetimes = "allow" clippy.needless_return = "allow"