Skip to content

Commit d56876d

Browse files
committed
Add thiserror import for automatic Display implementation in std mode
1 parent 9e64403 commit d56876d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

aimdb-core/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@
155155
//! 3. Enable appropriate feature flags for your target platform
156156
//! 4. Update error matching to use the new error categories
157157
158+
// Rich error messages in std mode are derived from thiserror::Error
159+
// This import enables automatic Display implementation generation using
160+
// the #[cfg_attr(feature = "std", error("..."))] format strings below
158161
#[cfg(feature = "std")]
159162
use thiserror::Error;
160163

0 commit comments

Comments
 (0)