minor fixes & refactoring

This commit is contained in:
monosans
2025-04-11 17:05:21 +03:00
parent a3e94920a4
commit 94ebb30609
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ impl TryFrom<&str> for ProxyType {
fn try_from(string: &str) -> color_eyre::Result<Self> {
match string {
"http" | "https " => Ok(ProxyType::Http),
"http" | "https" => Ok(ProxyType::Http),
"socks4" => Ok(ProxyType::Socks4),
"socks5" => Ok(ProxyType::Socks5),
_ => Err(eyre!("Failed to convert {string} to ProxyType")),