diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-10 17:48:11 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-10 17:48:11 +0800 |
| commit | ae69c9eab589a61be328e219ee01624c3b3ad880 (patch) | |
| tree | fdbde73d061c7b2be5e38c10daacd6a636247d88 | |
| parent | f5a9e9024c519a2379a81d181828f36b779b93a1 (diff) | |
feat(shell_ctx): allow clippy const fn lint for typing_argument
| -rw-r--r-- | mingling_core/src/comp/shell_ctx.rs | 2 |
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")] { |
