Repository navigation
docs(errors): remove stale error-chain references - #136
Merged
Merged
Conversation
The crate and demos moved to thiserror, but comments still described the old error-chain setup. Rewrite them to describe the current error types, and drop the `recursion_limit` attributes that only error-chain needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The crate and both demos now use
thiserror, but several comments still described the old error-chain setup. This rewrites them to describe the current error types rather than just deleting them:src/error.rs: module docs now list the actualSacnErrorwrapper variants (Io,Str,Uuid,SacnParsePackError) and how they expose the source error.SourceCorruptno longer refers to an "error chain".src/lib.rs:sacn_parse_pack_errormodule docs describeParsePacketErrorinstead of error-chain backtraces.src/source.rs: the mutex-poisoning comments now give the real reason aPoisonErrorcan't be returned (it borrows the guard). Thewith_cid_ipdocs point at the wrappedstd::io::Error.src/receive.rs:set_merge_fndocs drop the error-chain sentence.examples/demo_{src,rcv}:DemoErrordocs describe the thiserror enum, and a stale error-chain docs link is gone.tests/*_parse_tests.rs: drop the "Uses the sACN error-chain errors" doc comments onuselines.It also removes the crate-level
recursion_limit = "1024"attribute fromsrc/lib.rsand both demo mains, which only existed for error-chain's macros. Build, clippy, rustdoc and tests pass without it.Generated by Claude Code