Skip to content

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Sep 13, 2022

This trait is already private so we don't need to worry about handwritten impls outside the crate, but sealing anyway is nice here because it makes clear when reading aserror.rs that all impls of this trait are visible in the thiserror source code; we don't need to study the derive macro's implementation to distinguish that it isn't emitting impls of this trait.

    error: usage of wildcard import
      --> src/aserror.rs:45:9
       |
    45 |     use super::*;
       |         ^^^^^^^^ help: try: `super::{Error, UnwindSafe}`
       |
       = note: `-D clippy::wildcard-imports` implied by `-D clippy::pedantic`
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
@dtolnay dtolnay merged commit 12acbc5 into master Sep 13, 2022
@dtolnay dtolnay deleted the sealed branch September 13, 2022 17:44
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.

1 participant