(&self, f: &mut std::fmt::Formatter<'_>)
| 597 | |
| 598 | impl std::fmt::Display for ForwardSpec { |
| 599 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 600 | if self.bind_addr == Self::DEFAULT_BIND_ADDR { |
| 601 | write!(f, "{}", self.port) |
| 602 | } else { |
| 603 | write!(f, "{}:{}", self.bind_addr, self.port) |
| 604 | } |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | // --------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected