diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2020-07-16 21:29:09 +0200 |
|---|---|---|
| committer | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2020-07-28 17:48:47 +0200 |
| commit | 6293dca1e880394d90fe80055216328fe4d9702e (patch) | |
| tree | 1fb1c8ab21bb65f2760d0eb20a9945ca8c95adec /src/rustllvm/CoverageMappingWrapper.cpp | |
| parent | 1f5d69daccd1f04e42886d9aaf513f2691132d17 (diff) | |
| download | rust-6293dca1e880394d90fe80055216328fe4d9702e.tar.gz rust-6293dca1e880394d90fe80055216328fe4d9702e.zip | |
Change Debug impl of SocketAddr and IpAddr to match their Display output
This has already been done for `SocketAddrV4`, `SocketAddrV6`,
`IpAddrV4` and `IpAddrV6`. I don't see a point to keep the rather bad
to read derived impl, especially when pretty printing:
V4(
127.0.0.1
)
From the `Display`, one can easily and unambiguously see if it's V4 or
V6. Using `Display` as `Debug` is very convenient for configuration
structs (e.g. for webservers) that often just have a `derive(Debug)`
and are printed that way to the user.
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
