Skip to content

Commit 71c1978

Browse files
committed
feat(api)!: replace () with Infallible
1 parent 4c7cbb4 commit 71c1978

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reporter/error_only_reporter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use super::{ErrorReport, Event, ParallelReporter, Reporter};
22
use crate::size;
3+
use std::convert::Infallible;
34

45
/// Only report errors.
56
#[derive(Debug)]
@@ -33,7 +34,7 @@ where
3334
Size: size::Size,
3435
ReportError: Fn(ErrorReport),
3536
{
36-
type DestructionError = (); // TODO: change this to `!` once it is stable.
37+
type DestructionError = Infallible; // TODO: change this to `!` once it is stable.
3738
fn destroy(self) -> Result<(), Self::DestructionError> {
3839
Ok(())
3940
}

0 commit comments

Comments
 (0)