From 2e29a61afaf6f5722b0a82f2a2ee3ff90124269a Mon Sep 17 00:00:00 2001 From: Grzegorz Dziadkiewicz Date: Sun, 12 Jan 2025 15:56:07 +0100 Subject: [PATCH] Fix bug --- exercises/13_error_handling/errors7.rs | 2 +- solutions/13_error_handling/errors7.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/13_error_handling/errors7.rs b/exercises/13_error_handling/errors7.rs index 446f48ec..5e401619 100644 --- a/exercises/13_error_handling/errors7.rs +++ b/exercises/13_error_handling/errors7.rs @@ -55,7 +55,7 @@ impl PositiveNonzeroInteger { // Don't change this line let x: i64 = s.parse()?; // Don't change this line - Self::new(x)? + Ok(Self::new(x)?) } } diff --git a/solutions/13_error_handling/errors7.rs b/solutions/13_error_handling/errors7.rs index 534d13ed..b61e657d 100644 --- a/solutions/13_error_handling/errors7.rs +++ b/solutions/13_error_handling/errors7.rs @@ -57,7 +57,7 @@ impl PositiveNonzeroInteger { // Don't change this line let x: i64 = s.parse()?; // Don't change this line - Self::new(x)? + Ok(Self::new(x)?) } }