Skip to content

Commit

Permalink
Update includes in '/library/core/src/error.rs';
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernager authored and gitbot committed Feb 20, 2025
1 parent 8a6245a commit e20aad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>`].
Expand Down Expand Up @@ -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()
}
}
Expand Down

0 comments on commit e20aad1

Please sign in to comment.