From f017e3355224775aa5b15170ca9909ebfbf9ee9c Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Wed, 15 Nov 2023 01:41:11 +0100 Subject: [PATCH] Nix `impl TryFrom<&str> for IndexType` (#559) Signed-off-by: Mazdak Farrokhzad --- crates/sats/src/db/def.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/sats/src/db/def.rs b/crates/sats/src/db/def.rs index 039ee4130a..e82d5f1426 100644 --- a/crates/sats/src/db/def.rs +++ b/crates/sats/src/db/def.rs @@ -230,17 +230,6 @@ impl TryFrom for IndexType { } } -impl TryFrom<&str> for IndexType { - type Error = (); - fn try_from(v: &str) -> Result { - match v { - "BTree" => Ok(IndexType::BTree), - "Hash" => Ok(IndexType::Hash), - _ => Err(()), - } - } -} - #[derive(Debug, Clone, PartialEq, Eq)] pub struct SequenceSchema { pub sequence_id: SequenceId,