aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:34:32 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:34:32 -0700
commit5d744a843c0fb8af675240a20f13cd48100d32f9 (patch)
tree2b8ade01bf9bbe565ee98470c3ceab1d42c6c7b6 /src/lib.rs
parentd303237c82a0d81785b8218a4d6a3f18f86f5d11 (diff)
Remove unnecessary check in IPv6 parsing
It's not possible to have encountered a double-colon when in the COLON_BUT_NO_GROUPS_YET state.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2ac49cb..3b3a02c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -316,7 +316,7 @@ fn validate_ipv6_address(address: &str) -> Result<(), Error> {
},
ValidationState::ColonButNoGroupsYet => {
- if c != ':' || double_colon_encountered {
+ if c != ':' {
return Err(Error::IllegalCharacter);
}
double_colon_encountered = true;