]> git.lizzy.rs Git - rust.git/commit
Change implementation of `Ipv6Addr::is_unspecified` and `is_loopback` from `matches...
authorCDirkx <christiaan@dirkx.com>
Tue, 1 Sep 2020 19:05:26 +0000 (21:05 +0200)
committerCDirkx <christiaan@dirkx.com>
Tue, 1 Sep 2020 19:05:26 +0000 (21:05 +0200)
commita43dd4f4014af0f70c032eb23c5cbf4c2829b7c8
tree1e20718b3926d9984d59be98a1aeb22fc3334037
parentcd08deff3c9c0de3ecd78883a3df4c9089b715d1
Change implementation of `Ipv6Addr::is_unspecified` and `is_loopback` from `matches!` to `u128` comparison

Done because `matches!` doesn't optimize well with array comparisons
library/std/src/net/ip.rs