Fix compilation and tests.

This commit is contained in:
Oleksandr Kozachuk
2023-01-06 15:08:52 +01:00
parent 6f78130fab
commit 127f386e35
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ impl<'a> PartialEq for Command<'a> {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Command::Add(s), Command::Add(o)) => *s.lock() == *o.lock(),
(Command::Leave(s), Command::Leave(o)) => s == o,
(Command::Keep(s), Command::Keep(o)) => s == o,
(Command::Ls(s), Command::Ls(o)) => s == o,
(Command::Ld(s), Command::Ld(o)) => s == o,
(Command::Mv(a, b), Command::Mv(x, y)) => a == x && b == y,