Skip to content

Commit

Permalink
impl ErrorConvert<()> for () (#1583)
Browse files Browse the repository at this point in the history
Co-authored-by: Geoffroy Couprie <contact@geoffroycouprie.com>
  • Loading branch information
cky and Geal committed Dec 30, 2022
1 parent 9c357ed commit 3c5e08c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/traits.rs
Expand Up @@ -1330,6 +1330,10 @@ impl<I> ErrorConvert<error::VerboseError<(I, usize)>> for error::VerboseError<I>
}
}

impl ErrorConvert<()> for () {
fn convert(self) {}
}

#[cfg(feature = "std")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "std")))]
/// Helper trait to show a byte slice as a hex dump
Expand Down

0 comments on commit 3c5e08c

Please sign in to comment.