(&self, other: &Self)
| 49 | |
| 50 | impl PartialEq for FileFingerprint { |
| 51 | fn eq(&self, other: &Self) -> bool { |
| 52 | self.len == other.len |
| 53 | && self.mtime_sec == other.mtime_sec |
| 54 | && self.mtime_nsec == other.mtime_nsec |
| 55 | && self.ctime_sec == other.ctime_sec |
| 56 | && self.ctime_nsec == other.ctime_nsec |
| 57 | && { |
| 58 | #[cfg(unix)] |
| 59 | { |
| 60 | self.dev == other.dev && self.ino == other.ino |
| 61 | } |
| 62 | #[cfg(not(unix))] |
| 63 | { |
| 64 | true |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | #[derive(Clone)] |
nothing calls this directly
no outgoing calls
no test coverage detected