windows: clippy's suggestions in the service and client (collapsible ifs, next_back)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 02:08:25 +03:00
1 parent 7565e62571
commit 757bebbb1d
6 files changed
+20 -21

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ pub fn link_tag(link: &str) -> String {
return t;
}
}
let host = link.split("://").nth(1).unwrap_or("").split(['@']).last().unwrap_or("").split([':', '/', '?', '#']).next().unwrap_or("");
let host = link.split("://").nth(1).unwrap_or("").split(['@']).next_back().unwrap_or("").split([':', '/', '?', '#']).next().unwrap_or("");
let t = ps_core::links::subscription::slugify_tag(host);
if t.is_empty() { "outbound".into() } else { t }
}