From a44c7b6f7c4c32926765cb512c45f5b1cf4eaa90 Mon Sep 17 00:00:00 2001 From: karencfv Date: Thu, 5 Dec 2024 19:39:54 +1300 Subject: [PATCH] clean up --- clickhouse-admin/types/src/lib.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/clickhouse-admin/types/src/lib.rs b/clickhouse-admin/types/src/lib.rs index d7d7bee591..aa1437bedc 100644 --- a/clickhouse-admin/types/src/lib.rs +++ b/clickhouse-admin/types/src/lib.rs @@ -1196,21 +1196,6 @@ pub enum Timestamp { Unix(String), } -// TODO: This doesn't seem to be working -//impl FromStr for Timestamp { -// type Err = Error; -// -// fn from_str(s: &str) -> Result { -// if let Ok(utc) = s.parse() { -// Ok(Timestamp::Utc(utc)) -// } else if let Some(_) = DateTime::from_timestamp(s.parse::().expect(&format!("{s} is not a valid timestamp")), 0) { -// Ok(Timestamp::Unix(s.to_string())) -// } else { -// bail!("{s} is not a valid timestamp") -// } -// } -//} - /// Retrieved time series from the internal `system` database. #[derive(Debug, Serialize, Deserialize, JsonSchema, PartialEq)] #[serde(rename_all = "snake_case")]