Skip to content

Commit 17485b3

Browse files
aballwaynicholasbishop
authored andcommitted
gpt_disk_io: Make errors PartialEq
Useful for consumer errors that want to be PartialEq.
1 parent 30f9b2e commit 17485b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpt_disk_io/src/disk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl<T: ?Sized> Captures<'_, '_> for T {}
103103

104104
/// Error type used by [`Disk`] methods.
105105
#[allow(clippy::module_name_repetitions)]
106-
#[derive(Debug)]
106+
#[derive(Debug, PartialEq)]
107107
pub enum DiskError<IoError: Debug + Display> {
108108
/// The storage buffer is not large enough.
109109
BufferTooSmall,

0 commit comments

Comments
 (0)