Skip to content

Commit f0891fa

Browse files
blitznicholasbishop
authored andcommitted
Implement Display trait for uefi::Status
1 parent 2036bed commit f0891fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

uefi/src/result/status.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ impl From<Status> for Result<(), ()> {
168168
}
169169
}
170170

171+
impl core::fmt::Display for Status {
172+
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
173+
Debug::fmt(self, f)
174+
}
175+
}
176+
171177
#[cfg(test)]
172178
mod tests {
173179
use super::*;

0 commit comments

Comments
 (0)