Remove unnecessary impl From<Jwt> for Value (#2483)

This commit is contained in:
Rushmore Mushambi 2023-08-21 16:09:00 +02:00 committed by GitHub
parent 2deab8429c
commit 74c3551b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View file

@ -27,7 +27,7 @@ where
Box::pin(async move { Box::pin(async move {
let router = self.router?; let router = self.router?;
let mut conn = Client::new(Method::Authenticate); let mut conn = Client::new(Method::Authenticate);
conn.execute_unit(router, Param::new(vec![self.token.into()])).await conn.execute_unit(router, Param::new(vec![self.token.0.into()])).await
}) })
} }
} }

View file

@ -1,6 +1,5 @@
//! Authentication types //! Authentication types
use crate::sql::Value;
use serde::Deserialize; use serde::Deserialize;
use serde::Serialize; use serde::Serialize;
use std::fmt; use std::fmt;
@ -135,12 +134,6 @@ impl<'a> From<&'a str> for Jwt {
} }
} }
impl From<Jwt> for Value {
fn from(Jwt(jwt): Jwt) -> Self {
jwt.into()
}
}
impl fmt::Debug for Jwt { impl fmt::Debug for Jwt {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "Jwt(REDACTED)") write!(f, "Jwt(REDACTED)")