| 160 | #[derive(Debug, Error)] |
| 161 | #[non_exhaustive] |
| 162 | pub enum PuzzleError { |
| 163 | #[error("Piece {0} doesn't fit!")] |
| 164 | WontFit(u16), |
| 165 | #[error("Missing a piece")] |
| 166 | MissingPiece, |
| 167 | } |
| 168 | |
| 169 | // #5: Debug + Display + Error |
| 170 | // impl Display for PuzzleError { |
nothing calls this directly
no outgoing calls
no test coverage detected