feat(errors): completed errors

This commit is contained in:
2026-09-06 22:26:34 +02:00
parent ad542a4892
commit fe01747f82
6 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
let cost_per_item = 5;
// TODO: Handle the error case as described above.
let qty = item_quantity.parse::<i32>();
let qty = item_quantity.parse::<i32>()?;
Ok(qty * cost_per_item + processing_fee)
}