impl From instead of Into

This commit is contained in:
Heiko Schaefer 2021-09-02 21:44:35 +02:00
parent 393e58d489
commit ee349d9083

View file

@ -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
}
}