shepmaster / snafu

Easily assign underlying errors into domain-specific errors while adding context
https://docs.rs/snafu/
Apache License 2.0
1.4k stars 60 forks source link

ChainCompat now returns &'a (dyn Error + 'b) to allow downcasting #397

Closed shepmaster closed 1 year ago

shepmaster commented 1 year ago

Previously it unconditionally returned &'a (dyn Error + 'a) which was never downcastable. The additional lifetime can be 'static, resulting in &'a (dyn Error + 'static), which may be downcast.

Closes #370

netlify[bot] commented 1 year ago

Deploy Preview for shepmaster-snafu ready!

Name Link
Latest commit 122a88e3f6d8438ab6a53f1c06ca84bb942fef6e
Latest deploy log https://app.netlify.com/sites/shepmaster-snafu/deploys/64e15f56f375ed00086001da
Deploy Preview https://deploy-preview-397--shepmaster-snafu.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.