Skip to content

Commit

Permalink
bridge: Remove unused variant from plugin-queue's Error type
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Jun 19, 2024
1 parent 7bca5c8 commit cb50b53
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bridge/svix-bridge-plugin-queue/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub use omniqueue::QueueError;
use svix_bridge_types::svix;

pub enum Error {
Payload(String),
Json(serde_json::Error),
Queue(QueueError),
Svix(svix::error::Error),
Expand Down Expand Up @@ -37,7 +36,6 @@ impl From<String> for Error {
impl From<Error> for std::io::Error {
fn from(value: Error) -> Self {
match value {
Error::Payload(e) => std::io::Error::new(std::io::ErrorKind::Other, e),
Error::Json(e) => std::io::Error::new(std::io::ErrorKind::Other, e),
Error::Queue(e) => std::io::Error::new(std::io::ErrorKind::Other, e),
Error::Svix(e) => std::io::Error::new(std::io::ErrorKind::Other, e),
Expand Down

0 comments on commit cb50b53

Please sign in to comment.