Rollup merge of #121888 - cppcoffee:style, r=Nilstrieb

style library/core/src/error.rs

Add an extra blank line for clarity in distinguishing implementations.
This commit is contained in:
Matthias Krüger 2024-03-02 16:53:16 +01:00 committed by GitHub
commit 5b66e008e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,6 +183,7 @@ pub trait Error: Debug + Display {
#[allow(unused_variables)]
fn provide<'a>(&'a self, request: &mut Request<'a>) {}
}
mod private {
// This is a hack to prevent `type_id` from being overridden by `Error`
// implementations, since that can enable unsound downcasting.