From 624f9d3c78ab3f11e52a7071c07e8230c9889f23 Mon Sep 17 00:00:00 2001 From: Xiaobo Liu Date: Sat, 2 Mar 2024 16:03:23 +0800 Subject: [PATCH] style library/core/src/error.rs --- library/core/src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/error.rs b/library/core/src/error.rs index ded17e69bd9..a3f2b767054 100644 --- a/library/core/src/error.rs +++ b/library/core/src/error.rs @@ -183,6 +183,7 @@ fn cause(&self) -> Option<&dyn Error> { #[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.