mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 14:01:04 +00:00
refactor: use into
This commit is contained in:
parent
06553679fb
commit
09c9ce471c
1 changed files with 3 additions and 3 deletions
|
|
@ -9,9 +9,9 @@ use crate::pool::Db;
|
|||
|
||||
pub struct SessionAuth(Candidate);
|
||||
|
||||
impl From<SessionAuth> for Candidate {
|
||||
fn from(src: SessionAuth) -> Candidate {
|
||||
src.0
|
||||
impl Into<Candidate> for SessionAuth {
|
||||
fn into(self) -> Candidate {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue