Skip to content

Commit 3c5e08c

Browse files
ckyGeal
andauthored
impl ErrorConvert<()> for () (#1583)
Co-authored-by: Geoffroy Couprie <[email protected]>
1 parent 9c357ed commit 3c5e08c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traits.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,10 @@ impl<I> ErrorConvert<error::VerboseError<(I, usize)>> for error::VerboseError<I>
13301330
}
13311331
}
13321332

1333+
impl ErrorConvert<()> for () {
1334+
fn convert(self) {}
1335+
}
1336+
13331337
#[cfg(feature = "std")]
13341338
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "std")))]
13351339
/// Helper trait to show a byte slice as a hex dump

0 commit comments

Comments
 (0)