Skip to content

Commit f2fee33

Browse files
committed
add some useful derives
1 parent 69e1754 commit f2fee33

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/filesystem/filename.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::trace;
55

66
/// Various filename related errors that can occur.
77
#[cfg_attr(feature = "defmt-log", derive(defmt::Format))]
8-
#[derive(Debug, Clone)]
8+
#[derive(Debug, Clone, PartialEq, Eq)]
99
pub enum FilenameError {
1010
/// Tried to create a file with an invalid character.
1111
InvalidCharacter,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ macro_rules! warn {
158158

159159
/// All the ways the functions in this crate can fail.
160160
#[cfg_attr(feature = "defmt-log", derive(defmt::Format))]
161-
#[derive(Debug, Clone)]
161+
#[derive(Debug, Clone, PartialEq, Eq)]
162162
pub enum Error<E>
163163
where
164164
E: core::fmt::Debug,

0 commit comments

Comments
 (0)