impl From instead of Into
This commit is contained in:
parent
393e58d489
commit
ee349d9083
1 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ impl From<CardClientBox> for CardApp {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<CardClientBox> for CardApp {
|
||||
fn into(self) -> CardClientBox {
|
||||
self.card_client
|
||||
impl From<CardApp> for CardClientBox {
|
||||
fn from(card_app: CardApp) -> CardClientBox {
|
||||
card_app.card_client
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue