Skip to content

Commit 1944acc

Browse files
JohnAZoidbergnicholasbishop
authored andcommitted
gop: Derive PartialEq on ModeInfo
To check which mode is currently active, have to compare the ModeInfo structs. https://blog.fpmurphy.com/2015/05/check-available-text-and-graphics-modes-from-uefi-shell.html does the same. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 3ce9ed4 commit 1944acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/proto/console/gop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ impl Mode {
399399
}
400400

401401
/// Information about a graphics output mode.
402-
#[derive(Debug, Copy, Clone)]
402+
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
403403
#[repr(C)]
404404
pub struct ModeInfo {
405405
// The only known version, associated with the current spec, is 0.

0 commit comments

Comments
 (0)