Update includes in '/library/core/src/error.rs';

This commit is contained in:
Gabriel Bjørnager Jensen
2024-12-13 12:20:40 +01:00
parent 3da8bfb87f
commit 38eb608a43

View File

@@ -2,7 +2,7 @@
#![stable(feature = "error_in_core", since = "1.81.0")] #![stable(feature = "error_in_core", since = "1.81.0")]
use crate::any::TypeId; 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, /// `Error` is a trait representing the basic expectations for error values,
/// i.e., values of type `E` in [`Result<T, E>`]. /// 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")] #[unstable(feature = "error_generic_member_access", issue = "99301")]
impl<'a> Debug for Request<'a> { 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() f.debug_struct("Request").finish_non_exhaustive()
} }
} }