Skip to content

Commit

Permalink
Restore match arm for Error::Gateway variant (#2847)
Browse files Browse the repository at this point in the history
This was mistakenly removed in #2278 and wasn't caught because of the
wildcard pattern in the match.
  • Loading branch information
mkrasnitski authored and GnomedDev committed May 23, 2024
1 parent 0584425 commit 49abab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ impl StdError for Error {
Self::Model(inner) => Some(inner),
#[cfg(feature = "client")]
Self::Client(inner) => Some(inner),
#[cfg(feature = "gateway")]
Self::Gateway(inner) => Some(inner),
#[cfg(feature = "http")]
Self::Http(inner) => Some(inner),
#[cfg(feature = "gateway")]
Self::Tungstenite(inner) => Some(inner),
_ => None,
}
}
}

0 comments on commit 49abab7

Please sign in to comment.