Skip to content

Commit 2b55b09

Browse files
authored
ssh-encoding: propagate base64ct errors (#358)
This was waiting on upstream `core::error::Error` support
1 parent 87853b9 commit 2b55b09

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ssh-encoding/src/error.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ pub enum Error {
4343
impl core::error::Error for Error {
4444
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
4545
match self {
46-
// TODO(tarcieri): re-add support when `base64ct` uses `core::error`
47-
//#[cfg(feature = "base64")]
48-
//Self::Base64(err) => Some(err),
46+
#[cfg(feature = "base64")]
47+
Self::Base64(err) => Some(err),
4948
#[cfg(feature = "pem")]
5049
Self::Pem(err) => Some(err),
5150
_ => None,

0 commit comments

Comments
 (0)