aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
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;