Skip to content

Commit c3cb0ea

Browse files
bjoernagergitbot
authored and
gitbot
committed
Update includes in '/library/core/src/error.rs';
1 parent 3bffae0 commit c3cb0ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![stable(feature = "error_in_core", since = "1.81.0")]
33

44
use crate::any::TypeId;
5-
use crate::fmt::{Debug, Display, Formatter, Result};
5+
use crate::fmt::{self, Debug, Display, Formatter};
66

77
/// `Error` is a trait representing the basic expectations for error values,
88
/// i.e., values of type `E` in [`Result<T, E>`].
@@ -857,7 +857,7 @@ impl<'a> Request<'a> {
857857

858858
#[unstable(feature = "error_generic_member_access", issue = "99301")]
859859
impl<'a> Debug for Request<'a> {
860-
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
860+
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
861861
f.debug_struct("Request").finish_non_exhaustive()
862862
}
863863
}

0 commit comments

Comments
 (0)