File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 38
38
//! # Details
39
39
//!
40
40
//! - Thiserror deliberately does not appear in your public API. You get the
41
- //! same thing as if you had written an implementation of [`std::error::Error`]
42
- //! by hand, and switching from handwritten impls to thiserror or vice versa
43
- //! is not a breaking change.
41
+ //! same thing as if you had written an implementation of
42
+ //! [`std::error::Error`] by hand, and switching from handwritten impls to
43
+ //! thiserror or vice versa is not a breaking change.
44
44
//!
45
45
//! - Errors may be enums, structs with named fields, tuple structs, or unit
46
46
//! structs.
175
175
//!
176
176
//! - If a field is both a source (named `source`, or has `#[source]` or
177
177
//! `#[from]` attribute) *and* is marked `#[backtrace]`, then the Error
178
- //! trait's [`provide()`] method is forwarded to the source's `provide` so that
179
- //! both layers of the error share the same backtrace. The `#[backtrace]`
178
+ //! trait's [`provide()`] method is forwarded to the source's `provide` so
179
+ //! that both layers of the error share the same backtrace. The `#[backtrace]`
180
180
//! attribute requires a nightly compiler with Rust version 1.73 or newer.
181
181
//!
182
182
//! ```rust
You can’t perform that action at this time.
0 commit comments