mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 02:50:47 +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);
|
pub struct SessionAuth(Candidate);
|
||||||
|
|
||||||
impl From<SessionAuth> for Candidate {
|
impl Into<Candidate> for SessionAuth {
|
||||||
fn from(src: SessionAuth) -> Candidate {
|
fn into(self) -> Candidate {
|
||||||
src.0
|
self.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue