From a7ac9272d613011a5f0cebe92e8579efe2ae8100 Mon Sep 17 00:00:00 2001 From: Techassi Date: Fri, 29 Nov 2024 13:25:39 +0100 Subject: [PATCH] chore: Remove unused Error struct --- Cargo.lock | 1 - crates/stackable-versioned/Cargo.toml | 2 -- crates/stackable-versioned/src/lib.rs | 12 ------------ 3 files changed, 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bc54abbd1..02da6b590 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3280,7 +3280,6 @@ name = "stackable-versioned" version = "0.4.1" dependencies = [ "kube", - "snafu 0.8.5", "stackable-versioned-macros", ] diff --git a/crates/stackable-versioned/Cargo.toml b/crates/stackable-versioned/Cargo.toml index 3c0ef2ff9..5a8c70255 100644 --- a/crates/stackable-versioned/Cargo.toml +++ b/crates/stackable-versioned/Cargo.toml @@ -14,7 +14,6 @@ all-features = true full = ["k8s"] k8s = [ "stackable-versioned-macros/k8s", # Forward the k8s feature to the underlying macro crate - "dep:snafu", "dep:kube", ] @@ -22,4 +21,3 @@ k8s = [ stackable-versioned-macros = { path = "../stackable-versioned-macros" } kube = { workspace = true, optional = true } -snafu = { workspace = true, optional = true } diff --git a/crates/stackable-versioned/src/lib.rs b/crates/stackable-versioned/src/lib.rs index 6352ed304..8c0c399b1 100644 --- a/crates/stackable-versioned/src/lib.rs +++ b/crates/stackable-versioned/src/lib.rs @@ -15,18 +15,6 @@ // Re-export macro pub use stackable_versioned_macros::*; -#[cfg(feature = "k8s")] -#[derive(Debug, snafu::Snafu)] -pub enum Error { - #[snafu(display("failed to merge CRDs"))] - MergeCrd { source: kube::core::crd::MergeError }, - - #[snafu(display("failed to serialize YAML"))] - SerializeYaml { - source: stackable_shared::yaml::Error, - }, -} - // Unused for now, might get picked up again in the future. #[doc(hidden)] pub trait AsVersionStr {