(&self, f: &mut std::fmt::Formatter<'_>)
| 276 | |
| 277 | impl std::fmt::Display for SyncError { |
| 278 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 279 | match self { |
| 280 | SyncError::Codec(e) => write!(f, "sync codec error: {e}"), |
| 281 | SyncError::Compression(e) => write!(f, "sync compression error: {e}"), |
| 282 | SyncError::TooLarge { limit } => { |
| 283 | write!(f, "decompressed sync body exceeds {limit} bytes") |
| 284 | } |
| 285 | } |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | impl std::error::Error for SyncError { |
nothing calls this directly
no outgoing calls
no test coverage detected