Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkohbrok committed Mar 26, 2024
1 parent 6f16f3e commit 1982159
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,23 +202,6 @@ pub struct AuthToken {
token: [u8; 32],
}

#[cfg(feature = "rusqlite")]
impl ToSql for AuthToken {
fn to_sql(&self) -> rusqlite::Result<rusqlite::types::ToSqlOutput<'_>> {
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<Self> {
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,
Expand Down

0 comments on commit 1982159

Please sign in to comment.