Skip to content

Commit

Permalink
Rollup merge of #121888 - cppcoffee:style, r=Nilstrieb
Browse files Browse the repository at this point in the history
style library/core/src/error.rs

Add an extra blank line for clarity in distinguishing implementations.
  • Loading branch information
matthiaskrgr committed Mar 2, 2024
2 parents 240d0ad + 624f9d3 commit 5b66e00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/error.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 5b66e00

Please sign in to comment.