Remove unnecessary impl From<Jwt> for Value
(#2483)
This commit is contained in:
parent
2deab8429c
commit
74c3551b45
2 changed files with 1 additions and 8 deletions
|
@ -27,7 +27,7 @@ where
|
|||
Box::pin(async move {
|
||||
let router = self.router?;
|
||||
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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
//! Authentication types
|
||||
|
||||
use crate::sql::Value;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
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 {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "Jwt(REDACTED)")
|
||||
|
|
Loading…
Reference in a new issue