Try into looks neater.

This commit is contained in:
2026-09-30 09:51:30 +02:00
parent f7e3fc5342
commit 75c0ee0084
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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,
})