From 1982159822695906774e7ac1cce664d4e6ee6886 Mon Sep 17 00:00:00 2001 From: Konrad Kohbrok Date: Tue, 26 Mar 2024 16:42:47 -0400 Subject: [PATCH] cleanup --- types/src/lib.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/types/src/lib.rs b/types/src/lib.rs index 9e2d6af..4ce47fb 100644 --- a/types/src/lib.rs +++ b/types/src/lib.rs @@ -202,23 +202,6 @@ pub struct AuthToken { token: [u8; 32], } -#[cfg(feature = "rusqlite")] -impl ToSql for AuthToken { - fn to_sql(&self) -> rusqlite::Result> { - Ok(rusqlite::types::ToSqlOutput::Borrowed( - rusqlite::types::ValueRef::Blob(self.token()), - )) - } -} - -#[cfg(feature = "rusqlite")] -impl FromSql for AuthToken { - fn column_result(value: rusqlite::types::ValueRef<'_>) -> rusqlite::types::FromSqlResult { - let array = FromSql::column_result(value)?; - Ok(AuthToken::from_sqlite_array(array)) - } -} - #[derive(Debug, Clone, TlsSize, TlsSerialize, TlsDeserializeBytes)] pub struct ClientCredentials { pub client_id: DsClientId,