Skip to content

445#458

Merged
RAprogramm merged 2 commits into
mainfrom
445
Jul 5, 2026
Merged

445#458
RAprogramm merged 2 commits into
mainfrom
445

Conversation

@RAprogramm

Copy link
Copy Markdown
Owner

Closes #445

Boxed error round-trip, anyhow parity (from_boxed 1.0.95, into_boxed_dyn_error 1.0.98):

  • AppError::from_boxed(kind, box) — wraps an already-boxed dyn Error + Send + Sync without re-boxing (stored as owned source, so downcast/downcast_ref/downcast_mut work on it)
  • AppError::into_boxed_dyn_error(self) — boxes the error preserving kind, Display, metadata and the full source chain; always boxes self rather than unwrapping the source (no silent loss of kind/message/metadata), documented rationale
  • From<Box<dyn Error + Send + Sync>> for AppError (→ Internal) — checked against existing From impls, no conflicts; alloc-only, works under no_std

Round-trip verified: restored → original AppError → root cause chain intact; inner AppError recoverable by value. 5 new tests + 4 doctests; full suite, no_std build, clippy zero warnings, nightly fmt, readme_sync — all green.

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@RAprogramm RAprogramm merged commit e24e9b8 into main Jul 5, 2026
29 checks passed
@RAprogramm RAprogramm deleted the 445 branch July 5, 2026 07:18
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.

Add Box<dyn Error + Send + Sync> round-trip conversions

1 participant