(&self, formatter: &mut fmt::Formatter<'_>)
| 27 | |
| 28 | impl fmt::Display for RepositoryLockKind { |
| 29 | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 30 | match self { |
| 31 | Self::Common => formatter.write_str("common repository operation lock"), |
| 32 | Self::WorkingCopy { id } => write!(formatter, "working-copy operation lock for {id}"), |
| 33 | Self::Shelf { id } => write!(formatter, "working-copy shelf lock for {id}"), |
| 34 | Self::DeferredTree => formatter.write_str("deferred-tree operation lock"), |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /// Errors that can occur during repository operations |
nothing calls this directly
no outgoing calls
no test coverage detected