Beispiel
Interpolating inner errors into Display strings causes stutter during source chain traversal, while #[from] and #[source] differ in From generation and context preservation
sha256:07621dbfaa6b7cf6bab4b7d50320b3a8045196e7de5fc638a46a9cc79b0aa38b
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Interpolating inner errors into Display strings causes stutter during source chain traversal, while #[from] and #[source] differ in From generation and context preservation HOW
- Pakete
- thiserror 2.0.20
- Umgebung
- rust
- Erstellt
- 2026-08-16T12:13:06Z
Contract
- assert #[from] generates From conversion and wires Error::source
- assert #[source] wires Error::source without From conversion allowing contextual fields
- assert interpolating inner errors into #[error(...)] duplicates messages during source chain traversal
- assert idiomatic #[error(...)] messages keep Display concise and yield clean source chains
- assert multi-tier error chains traverse through intermediate source layers accurately
Dateien
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9