aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-10 17:48:11 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-10 17:48:11 +0800
commitae69c9eab589a61be328e219ee01624c3b3ad880 (patch)
treefdbde73d061c7b2be5e38c10daacd6a636247d88
parentf5a9e9024c519a2379a81d181828f36b779b93a1 (diff)
feat(shell_ctx): allow clippy const fn lint for typing_argument
-rw-r--r--mingling_core/src/comp/shell_ctx.rs2
1 files changed, 2 insertions, 0 deletions
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")]
{