summaryrefslogtreecommitdiff
path: root/solutions/13_error_handling/errors2.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-02-18 20:15:28 +0100
committermo8it <mo8it@proton.me>2025-02-18 20:15:50 +0100
commit65dc019fa6a5fe7518fcb77f1f076dfc5b8d9f1b (patch)
treef3c237260e5e048a27e99cd155f8e52352a3b7e7 /solutions/13_error_handling/errors2.rs
parenta56ccb6f4ff168803b44b975a257acb028a82cad (diff)
Fix new Clippy error in solution
Diffstat (limited to 'solutions/13_error_handling/errors2.rs')
-rw-r--r--solutions/13_error_handling/errors2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/solutions/13_error_handling/errors2.rs b/solutions/13_error_handling/errors2.rs
index 0597c8c..f0e144e 100644
--- a/solutions/13_error_handling/errors2.rs
+++ b/solutions/13_error_handling/errors2.rs
@@ -16,7 +16,7 @@
use std::num::ParseIntError;
-#[allow(unused_variables)]
+#[allow(unused_variables, clippy::question_mark)]
fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
let processing_fee = 1;
let cost_per_item = 5;