From ae69c9eab589a61be328e219ee01624c3b3ad880 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 17:48:11 +0800 Subject: feat(shell_ctx): allow clippy const fn lint for typing_argument --- mingling_core/src/comp/shell_ctx.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mingling_core/src/comp') diff --git a/mingling_core/src/comp/shell_ctx.rs b/mingling_core/src/comp/shell_ctx.rs index ceb433f..65ee9e2 100644 --- a/mingling_core/src/comp/shell_ctx.rs +++ b/mingling_core/src/comp/shell_ctx.rs @@ -194,6 +194,8 @@ impl ShellContext { note = "When using the `picker` feature, this method does not work under all ParserStyle settings" ) )] + // On different platforms, it might not be possible to be a const fn, so we should allow it + #[allow(clippy::missing_const_for_fn)] pub fn typing_argument(&self) -> bool { #[cfg(target_os = "windows")] { -- cgit