diff options
Diffstat (limited to 'systems/sheet/src/index_source.rs')
| -rw-r--r-- | systems/sheet/src/index_source.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/systems/sheet/src/index_source.rs b/systems/sheet/src/index_source.rs index 43508f2..b11a6b6 100644 --- a/systems/sheet/src/index_source.rs +++ b/systems/sheet/src/index_source.rs @@ -62,7 +62,7 @@ impl IndexSource { impl PartialEq for IndexSource { fn eq(&self, other: &Self) -> bool { - &self.remote == &other.remote && &self.id == &other.id && &self.ver == &other.ver + self.remote == other.remote && self.id == other.id && self.ver == other.ver } } @@ -158,12 +158,6 @@ impl IndexSource { impl std::fmt::Display for IndexSource { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let local_symbol = if self.remote { "" } else { "~" }; - write!( - f, - "{}{}/{}", - local_symbol, - self.id.to_string(), - self.ver.to_string() - ) + write!(f, "{}{}/{}", local_symbol, self.id, self.ver) } } |
