about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Bjørnager Jensen <gabriel@achernar.io>2024-12-13 12:20:40 +0100
committerGabriel Bjørnager Jensen <gabriel@achernar.io>2024-12-13 12:46:20 +0100
commit38eb608a4302ac7895a29bb715e881b8021f11ee (patch)
treefb862885b081f1bf212f95032fe19f1bd430bdfe
parent3da8bfb87f2bdcff56ed845383aa1c4fcd2c8705 (diff)
downloadrust-38eb608a4302ac7895a29bb715e881b8021f11ee.tar.gz
rust-38eb608a4302ac7895a29bb715e881b8021f11ee.zip
Update includes in '/library/core/src/error.rs';
-rw-r--r--library/core/src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/error.rs b/library/core/src/error.rs
index 91549f49f9f..9dbea57fa1f 100644
--- a/library/core/src/error.rs
+++ b/library/core/src/error.rs
@@ -2,7 +2,7 @@
 #![stable(feature = "error_in_core", since = "1.81.0")]
 
 use crate::any::TypeId;
-use crate::fmt::{Debug, Display, Formatter, Result};
+use crate::fmt::{self, Debug, Display, Formatter};
 
 /// `Error` is a trait representing the basic expectations for error values,
 /// i.e., values of type `E` in [`Result<T, E>`].
@@ -857,7 +857,7 @@ impl<'a> Request<'a> {
 
 #[unstable(feature = "error_generic_member_access", issue = "99301")]
 impl<'a> Debug for Request<'a> {
-    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
+    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
         f.debug_struct("Request").finish_non_exhaustive()
     }
 }