mirror of
https://github.com/corn-config/corn.git
synced 2026-07-11 06:16:07 +01:00
[PR #16] [MERGED] refactor: improve error handling and code quality #27
Labels
No labels
bug
bug
documentation
enhancement
enhancement
pull-request
tooling
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
corn-config/corn#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/corn-config/corn/pull/16
Author: @JakeStanger
Created: 5/24/2023
Status: ✅ Merged
Merged: 5/24/2023
Merged by: @JakeStanger
Base:
master← Head:refactor/general📝 Commits (1)
ab1af29refactor: improve error handling and code quality📊 Changes
10 files changed (+221 additions, -204 deletions)
View changed files
📝
Cargo.lock(+39 -27)➕
assets/inputs/invalid_nesting.corn(+4 -0)📝
corn-cli/src/bin/corn.rs(+9 -8)📝
corn-cli/src/error.rs(+22 -35)📝
libcorn/Cargo.toml(+4 -3)📝
libcorn/src/de.rs(+55 -25)📝
libcorn/src/error.rs(+15 -56)📝
libcorn/src/lib.rs(+1 -1)📝
libcorn/src/parser.rs(+71 -48)📝
libcorn/tests/parser_tests.rs(+1 -1)📄 Description
Replaces any panics with proper error handling.
Removes all unwraps, replacing them with either proper error handling or
expectcalls where appropriate.Introduces
thiserrorto reduce error boilerplate, along with some general improvements to error code.Fixes several pedantic clippy warnings to improve code quality.
Updates a couple of dependencies.
Resolves #13.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.