(&self, f: &mut fmt::Formatter<'_>)
| 171 | |
| 172 | impl fmt::Display for FileRecordInput { |
| 173 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 174 | let kind = match self.kind { |
| 175 | FileRecordKind::Added => "add", |
| 176 | FileRecordKind::Modified => "mod", |
| 177 | FileRecordKind::Deleted => "del", |
| 178 | FileRecordKind::DirectoryAdded => "dir+", |
| 179 | FileRecordKind::DirectoryDeleted => "dir-", |
| 180 | }; |
| 181 | write!(f, "[{}] {}", kind, self.path) |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // ═══════════════════════════════════════════════════════════════════════ |
nothing calls this directly
no outgoing calls
no test coverage detected