Skip to content

docs(errors): remove stale error-chain references - #136

Merged
stewartadam merged 1 commit into
mainfrom
chore/remove-error-chain-references
Nov 29, 2026
Merged

stewartadam merged 1 commit into
mainfrom
chore/remove-error-chain-references

Conversation

@stewartadam

@stewartadam stewartadam commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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 actual SacnError wrapper variants (Io, Str, Uuid, SacnParsePackError) and how they expose the source error. SourceCorrupt no longer refers to an "error chain".
  • src/lib.rs: sacn_parse_pack_error module docs describe ParsePacketError instead of error-chain backtraces.
  • src/source.rs: the mutex-poisoning comments now give the real reason a PoisonError can't be returned (it borrows the guard). The with_cid_ip docs point at the wrapped std::io::Error.
  • src/receive.rs: set_merge_fn docs drop the error-chain sentence.
  • examples/demo_{src,rcv}: DemoError docs 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 on use lines.

It also removes the crate-level recursion_limit = "1024" attribute from src/lib.rs and both demo mains, which only existed for error-chain's macros. Build, clippy, rustdoc and tests pass without it.


Generated by Claude Code

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>
@stewartadam stewartadam self-assigned this Nov 29, 2026
@stewartadam
stewartadam merged commit 1da15a4 into main Nov 29, 2026
13 checks passed
@stewartadam
stewartadam deleted the chore/remove-error-chain-references branch November 29, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants