diff options
Diffstat (limited to 'src/parse_host_port.rs')
-rw-r--r-- | src/parse_host_port.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parse_host_port.rs b/src/parse_host_port.rs index c5cdcc6..0f02d48 100644 --- a/src/parse_host_port.rs +++ b/src/parse_host_port.rs @@ -220,10 +220,7 @@ where T: AsRef<str>, { let (machine, host_port_string) = State::new(host_port_string.as_ref()); - host_port_string - .chars() - .try_fold(machine, |machine, c| machine.next(c))? - .finalize() + host_port_string.chars().try_fold(machine, State::next)?.finalize() } #[cfg(test)] |