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)?) } }