(&self, f: &mut fmt::Formatter<'_>)
| 151 | |
| 152 | impl fmt::Display for ChunkNegotiation { |
| 153 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 154 | write!( |
| 155 | f, |
| 156 | "need {} of {} chunks ({} to transfer, {} saved, {:.1}% savings)", |
| 157 | self.needed.len(), |
| 158 | self.total_chunks, |
| 159 | format_size(self.bytes_needed), |
| 160 | format_size(self.bytes_saved), |
| 161 | self.savings_pct(), |
| 162 | ) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // ═══════════════════════════════════════════════════════════════════════ |
nothing calls this directly
no outgoing calls
no test coverage detected