Skip to content

Commit 38de483

Browse files
authored
RUST-294 remove unimplemented Display (#125)
1 parent 1681948 commit 38de483

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/error.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub enum ErrorKind {
172172

173173
/// An error occurred when trying to execute a write operation
174174
#[error(
175-
display = "An error occurred when trying to execute a write operation: {}",
175+
display = "An error occurred when trying to execute a write operation: {:?}",
176176
_0
177177
)]
178178
WriteError(WriteFailure),
@@ -378,12 +378,6 @@ impl WriteFailure {
378378
}
379379
}
380380

381-
impl fmt::Display for WriteFailure {
382-
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
383-
unimplemented!()
384-
}
385-
}
386-
387381
/// Translates ErrorKind::BulkWriteError cases to ErrorKind::WriteErrors, leaving all other errors
388382
/// untouched.
389383
pub(crate) fn convert_bulk_errors(error: Error) -> Error {

0 commit comments

Comments
 (0)