Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit af2e3af

Browse files
committed
error: enable core::error::Error for all error payloads
1 parent 4dd7b7b commit af2e3af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎uefi/src/result/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::Status;
22
use core::fmt::{Debug, Display};
33

4-
/// Errors emitted from UEFI entry point must propagate erronerous UEFI statuses,
4+
/// Errors emitted from UEFI entry point must propagate erroneous UEFI statuses,
55
/// and may optionally propagate additional entry point-specific data.
66
#[derive(Debug, PartialEq, Eq)]
77
pub struct Error<Data: Debug = ()> {
@@ -40,11 +40,11 @@ impl From<Status> for Error<()> {
4040
}
4141
}
4242

43-
impl<Data: Debug + Display> Display for Error<Data> {
43+
impl<Data: Debug> Display for Error<Data> {
4444
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
45-
write!(f, "UEFI Error {}: {}", self.status(), self.data())
45+
write!(f, "UEFI Error {}: {:?}", self.status(), self.data())
4646
}
4747
}
4848

4949
#[cfg(feature = "unstable")]
50-
impl<Data: Debug + Display> core::error::Error for Error<Data> {}
50+
impl<Data: Debug> core::error::Error for Error<Data> {}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /