Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ffx] Only compare TargetAddr on ip and port
This patch implements custom `PartialEq`, `Eq`, `PartialOrd`, `Ord`, and `Hash` that only compare `ip` and `port`, and ignores ipv6 `flowinfo` and `scope_id` fields. The latest rust nightly has [fixed] a longstanding bug where the `PartialEq` implementation for `std::net::SocketAddr6` did not compare the `flowinfo` and `scope_id` fields. This has been fixed, but it broke ffx, which depended on this to deduplicate addresses that had the same ip and port, but different scopes. [fixed]: rust-lang/rust#116714 Change-Id: I64536942fe3ad44c509ffa10bd8e637d2a92ea2c Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/942191 Reviewed-by: Steven Grady <slgrady@google.com> Fuchsia-Auto-Submit: Erick Tryzelaar <etryzelaar@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
- Loading branch information