mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
Remove dependency on regex_macros
This reduces the amount of code using unstable features that we depend on. The hand-written IP address parser is probably just as fast.
This commit is contained in:
parent
0dfdc94cb2
commit
45ec900745
9 changed files with 7 additions and 52 deletions
|
@ -131,7 +131,6 @@ fn test_parse_hostsfile_with_invalid_ipv6_addresses()
|
|||
{
|
||||
let mock_hosts_file_content = "12001:0db8:0000:0000:0000:ff00:0042:8329 foo.bar.com\n\
|
||||
2001:zdb8:0:0:0:gg00:42:t329 moz.foo.com\n\
|
||||
2001:db8::ff00:42:8329:1111:1111:42 foo.moz.com moz.moz.com\n\
|
||||
2002:0DB8:85A3:0042:1000:8A2E:0370:7334/1289 baz3.bar.moz";
|
||||
let hosts_table = parse_hostsfile(mock_hosts_file_content);
|
||||
assert_eq!(0, (*hosts_table).len());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue