From f9c7c921af7c60b657f8fe78b70df03c1cfbc0d6 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Mon, 14 Jan 2019 18:21:36 -0800 Subject: [PATCH] trim_left_matches (deprecated) => trim_start_matches (#1524) --- src/resolve_addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolve_addr.rs b/src/resolve_addr.rs index b283473f15..3ef21094cc 100644 --- a/src/resolve_addr.rs +++ b/src/resolve_addr.rs @@ -85,7 +85,7 @@ fn split<'a>(address: &'a str) -> Option<(&'a str, u16)> { addr }; - let p = p.trim_left_matches(':'); + let p = p.trim_start_matches(':'); match p.parse::() { Err(_) => None, Ok(port) => Some((addr, port)),