From 45832e4e231c8d63359eb4c8631be3fa3c66094b Mon Sep 17 00:00:00 2001 From: can1357 Date: Tue, 28 Jul 2026 13:37:45 +0200 Subject: [PATCH] fix(rust): allowed platform-specific non-const functions --- crates/vendor/brush-core/src/sys/fs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/vendor/brush-core/src/sys/fs.rs b/crates/vendor/brush-core/src/sys/fs.rs index fad99dc9b..ce45b6e9c 100644 --- a/crates/vendor/brush-core/src/sys/fs.rs +++ b/crates/vendor/brush-core/src/sys/fs.rs @@ -6,6 +6,7 @@ use std::{ }; /// Normalizes shell-facing path aliases before `std::fs` sees them. +#[allow(clippy::missing_const_for_fn, reason = "Windows implementation allocates")] pub fn normalize_shell_path(path: &Path) -> Cow<'_, Path> { #[cfg(windows)] { @@ -18,6 +19,7 @@ pub fn normalize_shell_path(path: &Path) -> Cow<'_, Path> { } /// Returns a Windows drive root for a shell pattern that starts with an MSYS/WSL drive alias. +#[allow(clippy::missing_const_for_fn, reason = "Windows implementation allocates")] pub fn pattern_drive_alias_root( starts_with_forward_slash: bool, first: &str,