Fix clippy manual char comparison lint

This commit is contained in:
Hunter Bown
2026-02-17 16:28:16 -06:00
parent 91721d8a17
commit c81287cdfd
+1 -1
View File
@@ -502,7 +502,7 @@ fn expand_path(path: &str) -> PathBuf {
&& (stripped.is_empty() || stripped.starts_with('/') || stripped.starts_with('\\'))
&& let Some(mut home) = effective_home_dir()
{
let suffix = stripped.trim_start_matches(|ch| ch == '/' || ch == '\\');
let suffix = stripped.trim_start_matches(['/', '\\']);
if !suffix.is_empty() {
home.push(suffix);
}