Skip to content

Commit

Permalink
trim_left_matches (deprecated) => trim_start_matches (denoland#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo authored and ry committed Jan 15, 2019
1 parent eb4a19e commit f9c7c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolve_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u16>() {
Err(_) => None,
Ok(port) => Some((addr, port)),
Expand Down

0 comments on commit f9c7c92

Please sign in to comment.