Try into looks neater.
This commit is contained in:
@@ -18,7 +18,7 @@ impl TransactionRequest {
|
||||
Ok(domain::Transaction {
|
||||
id,
|
||||
description: self.description,
|
||||
amount: domain::Cents::try_from(self.amount_cents)?,
|
||||
amount: self.amount_cents.try_into()?,
|
||||
direction: self.direction.into(),
|
||||
date: self.date,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user