summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-S-Kim <ks77sj@gmail.com>2022-04-09 01:23:58 +0900
committerGitHub <noreply@github.com>2022-04-09 01:23:58 +0900
commit43d0623086edbc46fe896ba59c7afa22c3da9f7a (patch)
tree2e10d8a283fca7e5523665a13cf18677cf98fc0e
parente6c0d00637b79a939f3888df6cf401143f82f3a1 (diff)
fix(errors6.rs): remove one answer code
Although marked as 'TODO', three tests pass without any implementation because the correct answer code already exists.
-rw-r--r--exercises/error_handling/errors6.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/exercises/error_handling/errors6.rs b/exercises/error_handling/errors6.rs
index 0f6b27a..847a049 100644
--- a/exercises/error_handling/errors6.rs
+++ b/exercises/error_handling/errors6.rs
@@ -20,9 +20,6 @@ enum ParsePosNonzeroError {
}
impl ParsePosNonzeroError {
- fn from_creation(err: CreationError) -> ParsePosNonzeroError {
- ParsePosNonzeroError::Creation(err)
- }
// TODO: add another error conversion function here.
}