We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e9c9ce + 4dd0bf6 commit ae3660aCopy full SHA for ae3660a
src/signature.rs
@@ -158,6 +158,16 @@ impl<'a> fmt::Display for Signature<'a> {
158
}
159
160
161
+impl PartialEq for Signature<'_> {
162
+ fn eq(&self, other: &Self) -> bool {
163
+ self.when() == other.when()
164
+ && self.email_bytes() == other.email_bytes()
165
+ && self.name_bytes() == other.name_bytes()
166
+ }
167
+}
168
+
169
+impl Eq for Signature<'_> {}
170
171
#[cfg(test)]
172
mod tests {
173
use crate::{Signature, Time};
0 commit comments