From 40509a4ae4df977afd671bee8c368c69d6db6701 Mon Sep 17 00:00:00 2001 From: can1357 Date: Tue, 28 Jul 2026 13:11:26 +0200 Subject: [PATCH] fix(rust): removed invalid windows const qualifiers --- crates/vendor/brush-core/src/sys/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/vendor/brush-core/src/sys/fs.rs b/crates/vendor/brush-core/src/sys/fs.rs index 21f8ce517..fad99dc9b 100644 --- a/crates/vendor/brush-core/src/sys/fs.rs +++ b/crates/vendor/brush-core/src/sys/fs.rs @@ -6,7 +6,7 @@ use std::{ }; /// Normalizes shell-facing path aliases before `std::fs` sees them. -pub const fn normalize_shell_path(path: &Path) -> Cow<'_, Path> { +pub fn normalize_shell_path(path: &Path) -> Cow<'_, Path> { #[cfg(windows)] { translate_unix_drive_path(path).map_or(Cow::Borrowed(path), Cow::Owned) @@ -18,7 +18,7 @@ pub const 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. -pub const fn pattern_drive_alias_root( +pub fn pattern_drive_alias_root( starts_with_forward_slash: bool, first: &str, second: Option<&str>,