(&self, f: &mut fmt::Formatter<'_>)
| 12 | |
| 13 | impl fmt::Display for SetupError { |
| 14 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 15 | match self { |
| 16 | Self::Container => f.write_str("failed to start test container"), |
| 17 | Self::Connection => f.write_str("failed to connect to database"), |
| 18 | Self::Migration => f.write_str("failed to run database migrations"), |
| 19 | Self::Seed => f.write_str("failed to seed test data"), |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | impl Error for SetupError {} |