(
&self,
message: &'static str,
key: impl std::fmt::Display,
error: impl std::fmt::Display,
)
| 250 | } |
| 251 | |
| 252 | fn error_string( |
| 253 | &self, |
| 254 | message: &'static str, |
| 255 | key: impl std::fmt::Display, |
| 256 | error: impl std::fmt::Display, |
| 257 | ) -> String { |
| 258 | let bucket = &self.bucket; |
| 259 | format!("{message} (bucket: '{bucket}', key: '{key}', error: '{error}')") |
| 260 | } |
| 261 | |
| 262 | fn client_or_error(&self) -> Result<&Client, String> { |
| 263 | self.client.as_ref().ok_or_else(|| { |
no outgoing calls
no test coverage detected