impl PartialEq for Entry

This commit is contained in:
Matthias Beyer 2016-11-03 18:47:11 +01:00
parent 5d2bc65623
commit 303dd30ff2

View file

@ -1558,6 +1558,16 @@ impl Entry {
} }
impl PartialEq for Entry {
fn eq(&self, other: &Entry) -> bool {
self.location == other.location && // As the location only compares from the store root
self.header == other.header && // and the other Entry could be from another store (not
self.content == other.content // implemented by now, but we think ahead here)
}
}
mod glob_store_iter { mod glob_store_iter {
use std::fmt::{Debug, Formatter}; use std::fmt::{Debug, Formatter};
use std::fmt::Error as FmtError; use std::fmt::Error as FmtError;