diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-30 18:49:54 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-30 18:49:54 -0700 |
commit | 98d33f8dd784238eb3319eb5461afe4ed26ea216 (patch) | |
tree | 245a1b96371ef6670095c9b9aed21a09b12a908a /src/parse_host_port.rs | |
parent | 9d961981db81d10a7315160fbcb45b1ebaf4c119 (diff) |
Fix new warnings from latest Rust tools
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)] |